Remove Exception that is never thrown/caught.
This commit is contained in:
parent
829b8bccc3
commit
e3061ffba2
2 changed files with 9 additions and 13 deletions
|
@ -64,7 +64,7 @@ public final class Property implements IProperty, Serializable {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStringValue (String value) throws ParseException {
|
public void setStringValue (String value) {
|
||||||
if (type == NODE)
|
if (type == NODE)
|
||||||
this.nvalue = null;
|
this.nvalue = null;
|
||||||
if (type == JAVAOBJECT)
|
if (type == JAVAOBJECT)
|
||||||
|
@ -116,6 +116,7 @@ public final class Property implements IProperty, Serializable {
|
||||||
this.nvalue = value;
|
this.nvalue = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void setJavaObjectValue (Object value) {
|
public void setJavaObjectValue (Object value) {
|
||||||
if (type == NODE)
|
if (type == NODE)
|
||||||
this.nvalue = null;
|
this.nvalue = null;
|
||||||
|
@ -124,7 +125,6 @@ public final class Property implements IProperty, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public String getStringValue () {
|
public String getStringValue () {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case STRING:
|
case STRING:
|
||||||
|
@ -151,32 +151,32 @@ public final class Property implements IProperty, Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getIntegerValue () {
|
public long getIntegerValue () {
|
||||||
if (type == INTEGER)
|
if (type == INTEGER)
|
||||||
return lvalue;
|
return lvalue;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getFloatValue () {
|
public double getFloatValue () {
|
||||||
if (type == FLOAT)
|
if (type == FLOAT)
|
||||||
return dvalue;
|
return dvalue;
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Date getDateValue () {
|
public Date getDateValue () {
|
||||||
if (type == DATE)
|
if (type == DATE)
|
||||||
return new Date (lvalue);
|
return new Date (lvalue);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getBooleanValue () {
|
public boolean getBooleanValue () {
|
||||||
if (type == BOOLEAN)
|
if (type == BOOLEAN)
|
||||||
return bvalue;
|
return bvalue;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public INode getNodeValue () {
|
public INode getNodeValue () {
|
||||||
if (type == NODE)
|
if (type == NODE)
|
||||||
return nvalue;
|
return nvalue;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -469,12 +469,8 @@ public class TransientNode implements INode, Serializable {
|
||||||
public void setString (String propname, String value) {
|
public void setString (String propname, String value) {
|
||||||
// IServer.getLogger().log ("setting String prop");
|
// IServer.getLogger().log ("setting String prop");
|
||||||
Property prop = initProperty (propname);
|
Property prop = initProperty (propname);
|
||||||
try {
|
prop.setStringValue (value);
|
||||||
prop.setStringValue (value);
|
// Server.throwNodeEvent (new NodeEvent (this, NodeEvent.PROPERTIES_CHANGED));
|
||||||
// Server.throwNodeEvent (new NodeEvent (this, NodeEvent.PROPERTIES_CHANGED));
|
|
||||||
} catch (java.text.ParseException x) {
|
|
||||||
throw new RuntimeException ("Fehler beim Parsen des Datum-Strings");
|
|
||||||
}
|
|
||||||
lastmodified = System.currentTimeMillis ();
|
lastmodified = System.currentTimeMillis ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue