Reorder method / field modifiers (#619)

* Reorder method / field modifiers

* Reorder method / field modifiers v2
This commit is contained in:
Gustl22
2018-12-14 19:38:54 +01:00
committed by Emux
parent d806d6bcca
commit c984eae2d5
13 changed files with 149 additions and 149 deletions

View File

@@ -35,13 +35,13 @@ import java.util.prefs.BackingStoreException;
public class ThemeLoader {
final private Logger vtmLog = LoggerFactory.getLogger("org.oscim.ThemeLoader");
final private Logger mapsforgeLog = LoggerFactory.getLogger("org.mapsforge.ThemeLoader");
private final Logger vtmLog = LoggerFactory.getLogger("org.oscim.ThemeLoader");
private final Logger mapsforgeLog = LoggerFactory.getLogger("org.mapsforge.ThemeLoader");
final private VtmPanel vtmPanel;
final private MapsforgeMapPanel mapsforgeMapPanel;
final private RSyntaxTextArea syntaxTextArea;
private final VtmPanel vtmPanel;
private final MapsforgeMapPanel mapsforgeMapPanel;
private final RSyntaxTextArea syntaxTextArea;
private String themePath;
private String editorText;

View File

@@ -81,22 +81,22 @@ public final class LocationData {
}
public synchronized static double getLatitude() {
public static synchronized double getLatitude() {
return latitude;
}
synchronized static void setLatitude(double latitude) {
static synchronized void setLatitude(double latitude) {
if (LocationData.latitude != latitude) {
LocationData.latitude = latitude;
notifyChange();
}
}
public synchronized static double getLongitude() {
public static synchronized double getLongitude() {
return longitude;
}
public synchronized static void setLongitude(double longitude) {
public static synchronized void setLongitude(double longitude) {
if (LocationData.longitude != longitude) {
LocationData.longitude = longitude;
notifyChange();