cleaning up/testing #4712

This commit is contained in:
Ben Fry
2016-10-29 09:58:43 -04:00
parent 463221674a
commit ce4cb26e5d
4 changed files with 11 additions and 4 deletions
@@ -158,21 +158,24 @@ abstract public class Contribution {
}
// "1.0.2"
// "1.0.2" or null if not present
public String getPrettyVersion() {
return prettyVersion;
}
// 1402805757
public long getLastUpdated() {
return lastUpdated;
}
// 0
public int getMinRevision() {
return minRevision;
}
// 227
public int getMaxRevision() {
return maxRevision;
@@ -461,7 +461,7 @@ class DetailPanel extends JPanel {
desc.append("</font> ");
String version = contrib.getPrettyVersion();
if (version != null && !version.equals("null")) {
if (version != null) {
desc.append(version);
}
desc.append(" <br/>");
@@ -265,14 +265,14 @@ class StatusPanel extends JPanel {
updateLabel.setText("Available");
}
} else {
if (currentVersion != null && !currentVersion.equals("null")) {
if (currentVersion != null) {
updateLabel.setText(currentVersion + " installed");
} else {
updateLabel.setText("Installed");
}
}
} else {
if (currentVersion != null && !currentVersion.equals("null")) {
if (currentVersion != null) {
updateLabel.setText(currentVersion + " not compatible");
} else {
updateLabel.setText("Not compatible");