Revision: 19199
http://sourceforge.net/p/gate/code/19199
Author: markagreenwood
Date: 2016-04-05 18:07:35 +0000 (Tue, 05 Apr 2016)
Log Message:
-----------
a fix so eclipse can use java 8 on the code -- related to an eclipse bug rather
than our code
Modified Paths:
--------------
gate/branches/sawdust2/src/main/gate/creole/Parameter.java
Modified: gate/branches/sawdust2/src/main/gate/creole/Parameter.java
===================================================================
--- gate/branches/sawdust2/src/main/gate/creole/Parameter.java 2016-04-05
01:22:34 UTC (rev 19198)
+++ gate/branches/sawdust2/src/main/gate/creole/Parameter.java 2016-04-05
18:07:35 UTC (rev 19199)
@@ -120,7 +120,7 @@
/** Calculate and return the value for this parameter starting from a String
*/
- @SuppressWarnings("unchecked")
+ @SuppressWarnings({"unchecked", "rawtypes"})
public Object calculateValueFromString(String stringValue)
throws ParameterException {
//if we have no string we can't construct a value
@@ -243,7 +243,7 @@
}
else {
try {
- value = Enum.valueOf(paramClass.asSubclass(Enum.class), stringValue);
+ value = Enum.valueOf(paramClass.<Enum>asSubclass(Enum.class),
stringValue);
}
catch(IllegalArgumentException e) {
throw new ParameterException("Invalid enum constant name "
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs