Skip to content

Commit

Permalink
Fixes javadoc warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vsalaman committed Apr 9, 2014
1 parent f29e7cf commit fe22ebb
Show file tree
Hide file tree
Showing 59 changed files with 186 additions and 413 deletions.
9 changes: 8 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,17 @@ allprojects {
}
if (project.hasProperty("lint")) {
// gradle -Plint ...
tasks.withType(Compile) {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint"
}
}

if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}

def pomConfig = {
name 'jPOS Project'
description """
Expand Down
4 changes: 2 additions & 2 deletions compat_1_5_2/src/main/java/org/jpos/core/CardAgentLookup.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ synchronized public static CardAgent[] getAgents (CardTransaction t) {
}
/**
* locate an agent giving its class Name
* @param class name
* @param name
* @return given agent
* @exception CardAgentNotFoundException
*/
Expand Down Expand Up @@ -138,7 +138,7 @@ synchronized public static CardAgent getAgent (byte[] b)

/**
* locate an agent of a given class
* @param class
* @param t
* @return given agent
* @exception CardAgentNotFoundException
*/
Expand Down
10 changes: 0 additions & 10 deletions compat_1_5_2/src/main/java/org/jpos/space/TransientSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@
* @author Alejandro Revilla
* @version $Revision$ $Date$
* @since 2.0
* @jmx:mbean description "TransientSpace"
*/
public class TransientSpace implements LocalSpace, TransientSpaceMBean {
protected Map map;
static LocalSpace defaultSpace = new TransientSpace ();

/**
* @jmx:managed-constructor description="Default Constructor"
*/
public TransientSpace () {
super();
map = new HashMap ();
Expand Down Expand Up @@ -234,7 +230,6 @@ public static final LocalSpace getSpace (String spaceName) {
}
/**
* @return set of keys present in the Space
* @jmx:managed-attribute description="Keys in Space"
*/
public Set getKeySet () {
Set keySet;
Expand All @@ -261,9 +256,6 @@ public String getKeys () {
* same as Space.out (key,value)
* @param key Key
* @param value value
* @jmx:managed-operation description="Write value to key"
* @jmx:managed-operation-parameter position="0" name="key" description="Space Key"
* @jmx:managed-operation-parameter position="1" name="value" description="Value to write"
*/
public void write (String key, String value) {
out (key, value);
Expand All @@ -273,8 +265,6 @@ public void write (String key, String value) {
* same as (String) Space.rdp (key)
* @param key Key
* @return value.toString()
* @jmx:managed-operation description="Read value from key"
* @jmx:managed-operation-parameter position="0" name="key" description="Space Key"
*/
public String read (String key) {
Object o = rdp (key);
Expand Down
1 change: 0 additions & 1 deletion jpos/src/main/java/org/jpos/core/CardHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ public CardHolder (String track2)

/**
* creates a new CardHolder based on pan and exp
* @param track2 cards track2
* @exception InvalidCardException
*/
public CardHolder (String pan, String exp)
Expand Down
1 change: 0 additions & 1 deletion jpos/src/main/java/org/jpos/core/NodeConfigurable.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
*/
public interface NodeConfigurable {
/**
* @param cfg Configuration object
* @throws ConfigurationException
*/
public void setConfiguration (Node node)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
public interface ReadableConfiguration {
/**
* @returns cfg Configuration object
* @return cfg Configuration object
*/
public Configuration getConfiguration ();
}
Expand Down
7 changes: 2 additions & 5 deletions jpos/src/main/java/org/jpos/iso/AsciiHexInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class AsciiHexInterpreter implements BinaryInterpreter

/**
* Converts the binary data into ASCII hex digits.
* @see org.jpos.iso.BinaryInterpreter#interpret(byte[], byte[], int)
*/
public void interpret(byte[] data, byte[] b, int offset)
{
Expand All @@ -49,7 +48,6 @@ public void interpret(byte[] data, byte[] b, int offset)

/**
* Converts the ASCII hex digits into binary data.
* @see org.jpos.iso.BinaryInterpreter#uninterpret(byte[], int, int)
*/
public byte[] uninterpret(byte[] rawData, int offset, int length)
{
Expand All @@ -63,11 +61,10 @@ public byte[] uninterpret(byte[] rawData, int offset, int length)

/**
* Returns double nBytes because the hex representation of 1 byte needs 2 hex digits.
*
* @see org.jpos.iso.BinaryInterpreter#getPackedLength(int)
*
*/
public int getPackedLength(int nBytes)
{
return nBytes * 2;
}
}
}
15 changes: 6 additions & 9 deletions jpos/src/main/java/org/jpos/iso/AsciiInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ public class AsciiInterpreter implements Interpreter

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#interpret(java.lang.String)
*/
*
*/
public void interpret(String data, byte[] b, int offset)
{
try {
Expand All @@ -49,9 +48,8 @@ public void interpret(String data, byte[] b, int offset)

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#uninterpret(byte[])
*/
*
*/
public String uninterpret (byte[] rawData, int offset, int length) {
byte[] ret = new byte[length];
try {
Expand All @@ -69,9 +67,8 @@ public String uninterpret (byte[] rawData, int offset, int length) {

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#getPackedLength(int)
*/
*
*/
public int getPackedLength(int nDataUnits)
{
return nDataUnits;
Expand Down
15 changes: 6 additions & 9 deletions jpos/src/main/java/org/jpos/iso/BCDInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ private BCDInterpreter(boolean leftPadded, boolean fPadded) {

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#interpret(java.lang.String)
*/
*
*/
public void interpret(String data, byte[] b, int offset)
{
ISOUtil.str2bcd(data, leftPadded, b, offset);
Expand All @@ -65,9 +64,8 @@ public void interpret(String data, byte[] b, int offset)

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#uninterpret(byte[])
*/
*
*/
public String uninterpret(byte[] rawData, int offset, int length)
{
return ISOUtil.bcd2str (rawData, offset, length, leftPadded);
Expand All @@ -76,9 +74,8 @@ public String uninterpret(byte[] rawData, int offset, int length)
/**
* Each numeric digit is packed into a nibble, so 2 digits per byte, plus the
* possibility of padding.
*
* @see org.jpos.iso.Interpreter#getPackedLength(int)
*/
*
*/
public int getPackedLength(int nDataUnits)
{
return (nDataUnits + 1) / 2;
Expand Down
8 changes: 1 addition & 7 deletions jpos/src/main/java/org/jpos/iso/BcdPrefixer.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ public BcdPrefixer(int nDigits)
this.nDigits = nDigits;
}

/**
* @see org.jpos.iso.Prefixer#encodeLength(int, byte[])
*/
public void encodeLength(int length, byte[] b)
{
for (int i = getPackedLength() - 1; i >= 0; i--) {
Expand All @@ -73,9 +70,6 @@ public void encodeLength(int length, byte[] b)
}
}

/**
* @see org.jpos.iso.Prefixer#decodeLength(byte[], int)
*/
public int decodeLength(byte[] b, int offset)
{
int len = 0;
Expand All @@ -95,4 +89,4 @@ public int getPackedLength()
{
return (nDigits + 1) >> 1;
}
}
}
10 changes: 3 additions & 7 deletions jpos/src/main/java/org/jpos/iso/EbcdicBinaryInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,14 @@ public class EbcdicBinaryInterpreter implements BinaryInterpreter {

/**
* (non-Javadoc)
*
* @see org.jpos.iso.BinaryInterpreter#interpret(byte[],byte[],int)
*/
*
*/
public void interpret(byte[] data, byte[] b, int offset)
{
ISOUtil.asciiToEbcdic(data, b, offset);
}

/**
* @see org.jpos.iso.BinaryInterpreter#uninterpret(byte[],int,int)
*/
public byte[] uninterpret(byte[] rawData, int offset, int length)
public byte[] uninterpret(byte[] rawData, int offset, int length)
{
return ISOUtil.ebcdicToAsciiBytes(rawData, offset, length);
}
Expand Down
5 changes: 1 addition & 4 deletions jpos/src/main/java/org/jpos/iso/EbcdicHexInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class EbcdicHexInterpreter implements BinaryInterpreter

/**
* Converts the binary data into EBCDIC hex digits.
* @see org.jpos.iso.BinaryInterpreter#interpret(byte[], byte[], int)
*/
public void interpret(byte[] data, byte[] b, int offset)
{
Expand All @@ -51,7 +50,6 @@ public void interpret(byte[] data, byte[] b, int offset)

/**
* Converts the EBCDIC hex digits into binary data.
* @see org.jpos.iso.BinaryInterpreter#uninterpret(byte[], int, int)
*/
public byte[] uninterpret(byte[] rawData, int offset, int length)
{
Expand All @@ -70,8 +68,7 @@ public byte[] uninterpret(byte[] rawData, int offset, int length)

/**
* Returns double nBytes because the hex representation of 1 byte needs 2 hex digits.
*
* @see org.jpos.iso.BinaryInterpreter#getPackedLength(int)
*
*/
public int getPackedLength(int nBytes)
{
Expand Down
17 changes: 7 additions & 10 deletions jpos/src/main/java/org/jpos/iso/EbcdicInterpreter.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,28 @@ public class EbcdicInterpreter implements Interpreter

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#interpret(java.lang.String)
*/
*
*/
public void interpret(String data, byte[] b, int offset)
{
ISOUtil.asciiToEbcdic(data, b, offset);
}

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#uninterpret(byte[])
*/
*
*/
public String uninterpret(byte[] rawData, int offset, int length)
{
return ISOUtil.ebcdicToAscii(rawData, offset, length);
}

/**
* (non-Javadoc)
*
* @see org.jpos.iso.Interpreter#getPackedLength(int)
*/
*
*/
public int getPackedLength(int nDataUnits)
{
return nDataUnits;
}
}
}
3 changes: 0 additions & 3 deletions jpos/src/main/java/org/jpos/iso/GenericSSLSocketFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,6 @@ public String[] getEnabledCipherSuites() {
}


/**
* @see org.jpos.core.Configurable#setConfiguration(org.jpos.core.Configuration)
*/
public void setConfiguration(Configuration cfg) throws ConfigurationException {
this.cfg = cfg;
keyStore = cfg.get("keystore");
Expand Down
6 changes: 0 additions & 6 deletions jpos/src/main/java/org/jpos/iso/HexNibblesPrefixer.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ public HexNibblesPrefixer(int nDigits) {
this.nDigits = nDigits;
}

/**
* @see org.jpos.iso.Prefixer#encodeLength(int, byte[])
*/
public void encodeLength(int length, byte[] b) {
length <<= 1;
for (int i = getPackedLength() - 1; i >= 0; i--) {
Expand All @@ -46,9 +43,6 @@ public void encodeLength(int length, byte[] b) {
}
}

/**
* @see org.jpos.iso.Prefixer#decodeLength(byte[], int)
*/
public int decodeLength(byte[] b, int offset) {
int len = 0;
for (int i = 0; i < (nDigits + 1) / 2; i++)
Expand Down
2 changes: 0 additions & 2 deletions jpos/src/main/java/org/jpos/iso/IF_UNUSED.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
*/
public class IF_UNUSED extends ISOFieldPackager {
/**
* @param len - field len
* @param description symbolic descrption
*/
public IF_UNUSED () {
super(0, "<dummy>");
Expand Down
3 changes: 1 addition & 2 deletions jpos/src/main/java/org/jpos/iso/ISOAmountFieldPackager.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ public void setPrefixer(Prefixer prefixer)

/**
* Returns the prefixer's packed length and the interpreter's packed length.
* @see org.jpos.iso.ISOFieldPackager#getMaxPackedLength()
*/
*/
public int getMaxPackedLength()
{
return prefixer.getPackedLength() + interpreter.getPackedLength(getLength());
Expand Down
7 changes: 0 additions & 7 deletions jpos/src/main/java/org/jpos/iso/ISOBinaryFieldPackager.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ public void setPrefixer(Prefixer prefixer)
this.prefixer = prefixer;
}

/**
* @see org.jpos.iso.ISOFieldPackager#getMaxPackedLength()
*/
public int getMaxPackedLength()
{
return prefixer.getPackedLength() + interpreter.getPackedLength(getLength());
Expand Down Expand Up @@ -121,10 +118,6 @@ public byte[] pack(ISOComponent c) throws ISOException
}
}

/**
* @see org.jpos.iso.ISOFieldPackager#unpack(org.jpos.iso.ISOComponent,
* byte[], int)
*/
public int unpack(ISOComponent c, byte[] b, int offset) throws ISOException
{
try
Expand Down
Loading

0 comments on commit fe22ebb

Please sign in to comment.