• Willkommen im Geoclub - dem größten deutschsprachigen Geocaching-Forum. Registriere dich kostenlos, um alle Inhalte zu sehen und neue Beiträge zu erstellen.

[DEV] Eclipse-Warnungen aufgeräumt

Engywuck

Geowizard
Liebe Kollegen,
wie manche schon mitbekommen haben, habe ich bei den Eclipse-Warnungen mal ein wenig aufgeräumt. Derzeit bekomme ich noch folgende Warnungen:
Code:
The declared exception IOException is not actually thrown by the method exec(String, String) from type CWWrapper	CacheWolf-EWE/src/utils	CWWrapper.java	line 22	1240045603781	40616
The field CellConstants.BORDER is deprecated	CacheWolf-EWE/src/CacheWolf	FilterScreen.java	line 254	1240078126468	41101
The field CoordsScreen.exitKeys is hiding a field from type Control	CacheWolf-EWE/src/CacheWolf	CoordsScreen.java	line 26	1240045607046	40783
The field TravelbugJourneyScreen.exitKeys is hiding a field from type Control	CacheWolf-EWE/src/CacheWolf	TravelbugJourneyScreen.java	line 46	1240045605593	40704
The method cross(double, double, double, double, double, double) from the type Matrix is deprecated	CacheWolf-EWE/src/CacheWolf	Filter.java	line 238	1240045606843	40760
The method dist(double, double, double, double) from the type Matrix is deprecated	CacheWolf-EWE/src/CacheWolf	Filter.java	line 238	1240045606843	40761
The method dist(double, double, double, double) from the type Matrix is deprecated	CacheWolf-EWE/src/CacheWolf	Filter.java	line 240	1240045606843	40763
The method dist(double, double, double, double) from the type Matrix is deprecated	CacheWolf-EWE/src/CacheWolf	Filter.java	line 242	1240045606843	40765
The method dot(double, double, double, double, double, double) from the type Matrix is deprecated	CacheWolf-EWE/src/CacheWolf	Filter.java	line 239	1240045606843	40762
The method dot(double, double, double, double, double, double) from the type Matrix is deprecated	CacheWolf-EWE/src/CacheWolf	Filter.java	line 241	1240045606843	40764
The method drawDoubleArrow(Graphics, float, Color, Color, float) from the type GotoRose is never used locally	CacheWolf-EWE/src/CacheWolf/navi	GotoPanel.java	line 819	1240078148234	41109
The method drawRose(Graphics, float, Color, Color, float) from the type GotoRose is never used locally	CacheWolf-EWE/src/CacheWolf/navi	GotoPanel.java	line 846	1240078148234	41110
The method drawSimpleArrow(Graphics, float, Color, float) from the type GotoRose is never used locally	CacheWolf-EWE/src/CacheWolf/navi	GotoPanel.java	line 747	1240078148234	41108
The method exec(String, String, int, boolean) from the type Vm is deprecated	CacheWolf-EWE/src/utils	CWWrapper.java	line 38	1240045603781	40617
Im Prinzip würde ich die alle gerne wegbekommen, weiß allerdings nicht so recht, ob das ohne Schmerzen geht. Die drei unbenutzen Methoden in GotoRose wundern mich etwas. War da mal was geplant oder ist das Historie? Kennt sich mit dem Rest jemand aus?

Schöne Grüße,
E.

P.S.: Ach ja, lächerliche Warnungen wie "Else-Zweig nicht notwendig" habe ich in meinem Eclipse deaktiviert...
 

MiK

Geoguru
Engywuck schrieb:
Die drei unbenutzen Methoden in GotoRose wundern mich etwas. War da mal was geplant oder ist das Historie?
Die sind aus älteren Designs der Kompassrose. Wenn es ohne sie kompiliert, können sie prinzipiell raus. Falls man sie wirklich wieder für etwas braucht, findet man sie ja im SVN.
 

pfeffer

Geowizard
ein Großteil der Warnungen stammt aus der Matrix-Klasse - ich kann nur sagen: mit den depreciated funktioniert's - wenn ich mich recht erinnere gibt es zum Teil keinen direkten Ersatz dafür. Es kann aber auch sein, dass ich bloß froh war, dass ich es so zum Laufen bekommen habe...

Gruß,
Pfeffer.
 

greiol

Geoguru
falls ganz am ende noch ein paar warnigs bleiben, die wir definitiv nicht wegbekommen, können ein paar geschickt eingestreute
Code:
@SuppressWarnings("deprecation")
den compiler beruhigen. das sollte aber wirklich das letze mittel sein.
 
Oben