Changeset 7019 in josm
- Timestamp:
- 2014-04-28T16:41:29+02:00 (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.settings/org.eclipse.jdt.core.prefs
r6757 r7019 7 7 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled 8 8 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 9 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1. 69 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 10 10 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 11 org.eclipse.jdt.core.compiler.compliance=1. 611 org.eclipse.jdt.core.compiler.compliance=1.7 12 12 org.eclipse.jdt.core.compiler.debug.lineNumber=generate 13 13 org.eclipse.jdt.core.compiler.debug.localVariable=generate … … 111 111 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning 112 112 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning 113 org.eclipse.jdt.core.compiler.source=1. 6113 org.eclipse.jdt.core.compiler.source=1.7 114 114 org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 115 115 org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 -
trunk/build.xml
r7001 r7019 197 197 </target> 198 198 <target name="compile" depends="init,javacc"> 199 <javac srcdir="src" includes="com/**,oauth/**,org/apache/commons/codec/**" destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="iso-8859-1"/> 200 <javac srcdir="src" excludes="com/**,oauth/**,org/apache/commons/codec/**" destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8"> 199 <!-- COTS --> 200 <javac srcdir="src" includes="com/**,oauth/**,org/apache/commons/codec/**" nowarn="on" 201 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="iso-8859-1"> 202 <!-- get rid of "internal proprietary API" warning --> 203 <compilerarg value="-XDignore.symbol.file"/> 204 </javac> 205 <!-- JMapViewer/JOSM --> 206 <javac srcdir="src" excludes="com/**,oauth/**,org/apache/commons/codec/**,org/openstreetmap/gui/jmapviewer/Demo.java" 207 destdir="build" target="1.7" source="1.7" debug="on" includeantruntime="false" encoding="UTF-8"> 201 208 <compilerarg value="-Xlint:deprecation"/> 202 209 <compilerarg value="-Xlint:unchecked"/> -
trunk/src/org/openstreetmap/josm/gui/dialogs/ToggleDialog.java
r7005 r7019 179 179 } 180 180 }); 181 181 182 182 /** 183 183 * The linked preferences class (optional). If set, accessible from the title bar with a dedicated button … … 862 862 } 863 863 864 protected Component createLayout(Component data, boolean scroll, Collection<SideButton> firstButtons, Collection<SideButton>... nextButtons) { 864 @SafeVarargs 865 protected final Component createLayout(Component data, boolean scroll, Collection<SideButton> firstButtons, Collection<SideButton>... nextButtons) { 865 866 if (scroll) { 866 867 data = new JScrollPane(data); -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r7009 r7019 126 126 /** 127 127 * Returns the first element from {@code items} which is non-null, or null if all elements are null. 128 */ 128 * @param items the items to look for 129 * @return first non-null item if there is one 130 */ 131 @SafeVarargs 129 132 public static <T> T firstNonNull(T... items) { 130 133 for (T i : items) { … … 972 975 } 973 976 } 974 975 /** 976 * Fixes URL with illegal characters in the query (and fragment) part by 977 978 /** 979 * Fixes URL with illegal characters in the query (and fragment) part by 977 980 * percent encoding those characters. 978 * 981 * 979 982 * special characters like & and # are not encoded 980 * 983 * 981 984 * @param url the URL that should be fixed 982 985 * @return the repaired URL 983 986 */ 984 987 public static String fixURLQuery(String url) { 985 if (url.indexOf('?') == -1) 988 if (url.indexOf('?') == -1) 986 989 return url; 987 990 988 991 String query = url.substring(url.indexOf('?') + 1); 989 992 990 993 StringBuilder sb = new StringBuilder(url.substring(0, url.indexOf('?') + 1)); 991 994 992 995 for (int i=0; i<query.length(); i++) { 993 996 String c = query.substring(i, i+1); … … 1004 1007 return sb.toString(); 1005 1008 } 1006 1009 1007 1010 }
Note:
See TracChangeset
for help on using the changeset viewer.