Skip to content

Commit b9d3edb

Browse files
vogellaakurtakov
authored andcommitted
Remove dispose call for Colors in MessageLine
According to the Javadoc on Colors: * Colors do not need to be disposed, however to maintain compatibility * with older code, disposing a Color is not an error.
1 parent 5c67180 commit b9d3edb

File tree

1 file changed

+0
-8
lines changed
  • ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/preferences

1 file changed

+0
-8
lines changed

ant/org.eclipse.ant.ui/Ant Tools Support/org/eclipse/ant/internal/ui/preferences/MessageLine.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,4 @@ public void setErrorStatus(IStatus status) {
8484
setBackground(fNormalMsgAreaBackground);
8585
}
8686

87-
@Override
88-
public void dispose() {
89-
if (fErrorMsgAreaBackground != null) {
90-
fErrorMsgAreaBackground.dispose();
91-
fErrorMsgAreaBackground = null;
92-
}
93-
super.dispose();
94-
}
9587
}

0 commit comments

Comments
 (0)