Changeset 10862 in josm for trunk/src/com/drew/lang
- Timestamp:
- 2016-08-20T20:58:03+02:00 (9 years ago)
- Location:
- trunk/src/com/drew/lang
- Files:
-
- 1 added
- 2 deleted
- 14 edited
-
BufferBoundsException.java (modified) (1 diff)
-
ByteArrayReader.java (modified) (4 diffs)
-
CompoundException.java (modified) (1 diff)
-
DateUtil.java (added)
-
GeoLocation.java (modified) (2 diffs)
-
NullOutputStream.java (deleted)
-
RandomAccessReader.java (modified) (2 diffs)
-
Rational.java (modified) (1 diff)
-
SequentialByteArrayReader.java (modified) (2 diffs)
-
SequentialReader.java (modified) (1 diff)
-
StreamReader.java (modified) (2 diffs)
-
StringUtil.java (modified) (1 diff)
-
annotations/NotNull.java (modified) (1 diff)
-
annotations/Nullable.java (modified) (1 diff)
-
annotations/SuppressWarnings.java (deleted)
-
annotations/package.html (modified) (1 diff)
-
package.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/drew/lang/BufferBoundsException.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/ByteArrayReader.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 22 22 package com.drew.lang; 23 23 24 import java.io.IOException; 25 24 26 import com.drew.lang.annotations.NotNull; 25 26 import java.io.IOException;27 27 28 28 /** … … 40 40 private final byte[] _buffer; 41 41 42 @SuppressWarnings({ "ConstantConditions" })43 @com.drew.lang.annotations.SuppressWarnings(value = "EI_EXPOSE_REP2", justification = "Design intent")44 42 public ByteArrayReader(@NotNull byte[] buffer) 45 43 { … … 74 72 return bytesRequested >= 0 75 73 && index >= 0 76 && (long)index + (long)bytesRequested - 1L < (long)_buffer.length;74 && (long)index + (long)bytesRequested - 1L < _buffer.length; 77 75 } 78 76 -
trunk/src/com/drew/lang/CompoundException.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/GeoLocation.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 84 84 double[] dms = decimalToDegreesMinutesSeconds(decimal); 85 85 DecimalFormat format = new DecimalFormat("0.##"); 86 return String.format("%s °%s' %s\"", format.format(dms[0]), format.format(dms[1]), format.format(dms[2]));86 return String.format("%s\u00B0 %s' %s\"", format.format(dms[0]), format.format(dms[1]), format.format(dms[2])); 87 87 } 88 88 -
trunk/src/com/drew/lang/RandomAccessReader.java
r8243 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 53 53 * @param index The index from which to read the byte 54 54 * @return The read byte value 55 * @throws IllegalArgumentException <code>index</code> or <code>count</code> arenegative55 * @throws IllegalArgumentException <code>index</code> is negative 56 56 * @throws BufferBoundsException if the requested byte is beyond the end of the underlying data source 57 57 * @throws IOException if the byte is unable to be read -
trunk/src/com/drew/lang/Rational.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/SequentialByteArrayReader.java
r8243 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 42 42 } 43 43 44 @SuppressWarnings("ConstantConditions")45 44 public SequentialByteArrayReader(@NotNull byte[] bytes, int baseIndex) 46 45 { -
trunk/src/com/drew/lang/SequentialReader.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/StreamReader.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); … … 37 37 private final InputStream _stream; 38 38 39 @SuppressWarnings("ConstantConditions")40 39 public StreamReader(@NotNull InputStream stream) 41 40 { -
trunk/src/com/drew/lang/StringUtil.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/annotations/NotNull.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/annotations/Nullable.java
r8132 r10862 1 1 /* 2 * Copyright 2002-201 5Drew Noakes2 * Copyright 2002-2016 Drew Noakes 3 3 * 4 4 * Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/annotations/package.html
r8132 r10862 1 1 <!-- 2 ~ Copyright 2002-201 5Drew Noakes2 ~ Copyright 2002-2016 Drew Noakes 3 3 ~ 4 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); -
trunk/src/com/drew/lang/package.html
r8132 r10862 1 1 <!-- 2 ~ Copyright 2002-201 5Drew Noakes2 ~ Copyright 2002-2016 Drew Noakes 3 3 ~ 4 4 ~ Licensed under the Apache License, Version 2.0 (the "License");
Note:
See TracChangeset
for help on using the changeset viewer.
