Author: dazarov
Date: 2011-12-22 18:53:41 -0500 (Thu, 22 Dec 2011)
New Revision: 37541
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
Log:
Add @SuppressWarnings quick fix
https://issues.jboss.org/browse/JBIDE-10187
Modified:
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-22
22:57:24 UTC (rev 37540)
+++
trunk/common/plugins/org.jboss.tools.common.ui/src/org/jboss/tools/common/ui/marker/AddSuppressWarningsMarkerResolution.java 2011-12-22
23:53:41 UTC (rev 37541)
@@ -307,6 +307,13 @@
c = buffer.getChar(position);
}
}
+ while(position < buffer.getLength()-1){
+ char c = buffer.getChar(position);
+ if(c != '\r' && c != '\n' && c != ' '
&& c != '\t'){
+ break;
+ }
+ position++;
+ }
}
String str = AT+name;