Skip to content

Commit 3210069

Browse files
committed
The prefix 'java.lang.' is not required to refer to this special package. This is the only package this rule applies to.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@797690 13f79535-47bb-0310-9956-ffa450edef68
1 parent f7e1454 commit 3210069

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/java/org/apache/commons/codec/Decoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public interface Decoder {
3737
* Object. Note that the implementation of this
3838
* interface will try to cast the Object parameter
3939
* to the specific type expected by a particular Decoder
40-
* implementation. If a {@link java.lang.ClassCastException} occurs
40+
* implementation. If a {@link ClassCastException} occurs
4141
* this decode method will throw a DecoderException.
4242
*
4343
* @param pObject an object to "decode"

src/java/org/apache/commons/codec/binary/BinaryCodec.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public byte[] encode(byte[] raw) {
8989
* @return 0 and 1 ASCII character chars one for each bit of the argument
9090
* @throws EncoderException
9191
* if the argument is not a byte[]
92-
* @see org.apache.commons.codec.Encoder#encode(java.lang.Object)
92+
* @see org.apache.commons.codec.Encoder#encode(Object)
9393
*/
9494
public Object encode(Object raw) throws EncoderException {
9595
if (!(raw instanceof byte[])) {
@@ -106,7 +106,7 @@ public Object encode(Object raw) throws EncoderException {
106106
* @return the raw encoded binary where each bit corresponds to a byte in the byte array argument
107107
* @throws DecoderException
108108
* if argument is not a byte[], char[] or String
109-
* @see org.apache.commons.codec.Decoder#decode(java.lang.Object)
109+
* @see org.apache.commons.codec.Decoder#decode(Object)
110110
*/
111111
public Object decode(Object ascii) throws DecoderException {
112112
if (ascii == null) {

src/java/org/apache/commons/codec/language/Caverphone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public String caverphone(String txt) {
152152
* of type java.lang.String
153153
*/
154154
public Object encode(Object pObject) throws EncoderException {
155-
if (!(pObject instanceof java.lang.String)) {
155+
if (!(pObject instanceof String)) {
156156
throw new EncoderException("Parameter supplied to Caverphone encode is not of type java.lang.String");
157157
}
158158
return caverphone((String) pObject);

src/java/org/apache/commons/codec/language/Metaphone.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ private boolean isLastChar(int wdsz, int n) {
364364
* of type java.lang.String
365365
*/
366366
public Object encode(Object pObject) throws EncoderException {
367-
if (!(pObject instanceof java.lang.String)) {
367+
if (!(pObject instanceof String)) {
368368
throw new EncoderException("Parameter supplied to Metaphone encode is not of type java.lang.String");
369369
}
370370
return metaphone((String) pObject);

src/java/org/apache/commons/codec/language/RefinedSoundex.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public int difference(String s1, String s2) throws EncoderException {
129129
* if the parameter supplied is not of type java.lang.String
130130
*/
131131
public Object encode(Object pObject) throws EncoderException {
132-
if (!(pObject instanceof java.lang.String)) {
132+
if (!(pObject instanceof String)) {
133133
throw new EncoderException("Parameter supplied to RefinedSoundex encode is not of type java.lang.String");
134134
}
135135
return soundex((String) pObject);

0 commit comments

Comments
 (0)