corrected naming of cpe part update

Former-commit-id: aaac06bda3480c23d663f25b1feac34dc57032b9
This commit is contained in:
Jeremy Long
2015-07-05 06:09:17 -04:00
parent 44893a2a2c
commit 7203c91c70

View File

@@ -57,8 +57,7 @@ public class VulnerableSoftware extends IndexEntry implements Serializable, Comp
/** /**
* <p> * <p>
* Parses a name attribute value, from the cpe.xml, into its corresponding parts: vendor, product, version, * Parses a name attribute value, from the cpe.xml, into its corresponding parts: vendor, product, version, update.</p>
* revision.</p>
* <p> * <p>
* Example:</p> * Example:</p>
* <code>&nbsp;&nbsp;&nbsp;cpe:/a:apache:struts:1.1:rc2</code> * <code>&nbsp;&nbsp;&nbsp;cpe:/a:apache:struts:1.1:rc2</code>
@@ -85,7 +84,7 @@ public class VulnerableSoftware extends IndexEntry implements Serializable, Comp
version = urlDecode(data[2]); version = urlDecode(data[2]);
} }
if (data.length >= 4) { if (data.length >= 4) {
revision = urlDecode(data[3]); update = urlDecode(data[3]);
} }
if (data.length >= 5) { if (data.length >= 5) {
edition = urlDecode(data[4]); edition = urlDecode(data[4]);
@@ -297,26 +296,26 @@ public class VulnerableSoftware extends IndexEntry implements Serializable, Comp
this.version = version; this.version = version;
} }
/** /**
* The product revision version. * The product update version.
*/ */
private String revision; private String update;
/** /**
* Get the value of revision. * Get the value of update.
* *
* @return the value of revision * @return the value of update
*/ */
public String getRevision() { public String getUpdate() {
return revision; return update;
} }
/** /**
* Set the value of revision. * Set the value of update.
* *
* @param revision new value of revision * @param update new value of update
*/ */
public void setRevision(String revision) { public void setUpdate(String update) {
this.revision = revision; this.update = update;
} }
/** /**
* The product edition. * The product edition.
@@ -363,11 +362,9 @@ public class VulnerableSoftware extends IndexEntry implements Serializable, Comp
} }
/** /**
* Call {@link java.net.URLDecoder#decode(String)} to URL decode using the * Call {@link java.net.URLDecoder#decode(String)} to URL decode using the default encoding.
* default encoding.
* *
* @param text * @param text www-form-encoded URL to decode
* www-form-encoded URL to decode
* @return the newly decoded String * @return the newly decoded String
*/ */
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")