public CrossEntityReference() {
this.targetEntityType = null;
- this.attributeNames = new ArrayList<String>();
+ this.attributeNames = new ArrayList<>();
}
public String getTargetEntityType() {
private HashMap<Version, VersionedOxmEntities> versionedModels;
protected EntityOxmReferenceHelper() {
- this.versionedModels = new HashMap<Version,VersionedOxmEntities>();
+ this.versionedModels = new HashMap<>();
}
public static EntityOxmReferenceHelper getInstance() {
return this.versionedModels.get(version);
}
-}
\ No newline at end of file
+}
this.timeStamp = file.lastModified();
}
+ @Override
public final void run() {
- long timeStamp = file.lastModified();
+ long newTimeStamp = file.lastModified();
- if ((timeStamp - this.timeStamp) > 500) {
- this.timeStamp = timeStamp;
+ if ((newTimeStamp - this.timeStamp) > 500) {
+ this.timeStamp = newTimeStamp;
onChange(file);
}
}
protected abstract void onChange(File file);
-}
\ No newline at end of file
+}