Author: rdonkin
Date: Fri Dec 6 08:27:08 2013
New Revision: 1548410
URL: http://svn.apache.org/r1548410
Log:
Apply PMD Rules.
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/api/MetaData.java
Modified:
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/api/MetaData.java
URL:
http://svn.apache.org/viewvc/creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/api/MetaData.java?rev=1548410&r1=1548409&r2=1548410&view=diff
==============================================================================
---
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/api/MetaData.java
(original)
+++
creadur/rat/branches/gsoc/apache-rat-core/src/main/java/org/apache/rat/api/MetaData.java
Fri Dec 6 08:27:08 2013
@@ -266,24 +266,22 @@ public class MetaData {
return result;
}
- /**
- * Gets the value of the first datum matching the given name.
- *
- * @param name
- * not null
- * @return the value of the matchin datum first added when there is any
- * matching data, null otherwise
- */
- public String value(final String name) {
- final Datum datum = get(name);
- final String result;
- if (datum == null) {
- result = null;
- } else {
- result = datum.getValue();
- }
- return result;
- }
+ /**
+ * Gets the value of the first datum matching the given name.
+ *
+ * @param name
+ * not null
+ * @return the value of the matching datum first added when there is any
+ * matching data, null otherwise
+ */
+ public String value(final String name) {
+ final Datum datum = get(name);
+ String result = null;
+ if (datum != null) {
+ result = datum.getValue();
+ }
+ return result;
+ }
/**
* Removes all data matching the given name.