]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.databoard/src/org/simantics/databoard/util/Range.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.databoard / src / org / simantics / databoard / util / Range.java
index 4488ed7056802a0c96c767298d537dd5801dd132..e69927976121e16b55016dbc4f90c9c05769f2f2 100644 (file)
@@ -1,18 +1,18 @@
-/*******************************************************************************\r
- *  Copyright (c) 2010 Association for Decentralized Information Management in\r
- *  Industry THTH ry.\r
- *  All rights reserved. This program and the accompanying materials\r
- *  are made available under the terms of the Eclipse Public License v1.0\r
- *  which accompanies this distribution, and is available at\r
- *  http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- *  Contributors:\r
- *      VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
+/*******************************************************************************
+ *  Copyright (c) 2010 Association for Decentralized Information Management in
+ *  Industry THTH ry.
+ *  All rights reserved. This program and the accompanying materials
+ *  are made available under the terms of the Eclipse Public License v1.0
+ *  which accompanies this distribution, and is available at
+ *  http://www.eclipse.org/legal/epl-v10.html
+ *
+ *  Contributors:
+ *      VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
 package org.simantics.databoard.util;
 
-import java.util.regex.Matcher;\r
-import java.util.regex.Pattern;\r
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
 
 
 
@@ -218,7 +218,7 @@ public class Range {
 
        public static Range valueOf(String txt) 
        throws RangeException
-       {\r
+       {
                Matcher m = RANGE_PATTERN.matcher(txt);
                if (!m.matches()) throw new RangeException("Illegal range '" + txt + "'");
                
@@ -250,7 +250,7 @@ public class Range {
                                        Long l = Long.parseLong( m.group(3) );
                                        l2 = m.group(4).equals("]") ? Limit.inclusive(l) : Limit.exclusive(l);
                                } catch (NumberFormatException nfe) {
-                                       try {\r
+                                       try {
                                                Double d = Double.parseDouble( m.group(3) );
                                                l2 = m.group(4).equals("]") ? Limit.inclusive(d) : Limit.exclusive(d);
                                        } catch (NumberFormatException e) {