Site fixes
This commit is contained in:
parent
2c52f78eb5
commit
1808896b28
|
@ -223,6 +223,11 @@
|
|||
<artifactId>maven-jxr-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>findbugs-maven-plugin</artifactId>
|
||||
<version>2.5.3</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
|
@ -411,6 +416,7 @@
|
|||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
package ca.uhn.fhir.model.api;
|
||||
|
||||
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
|
||||
public abstract class BasePrimitive<T> extends BaseElement implements IPrimitiveDatatype<T> {
|
||||
|
||||
|
@ -13,4 +15,21 @@ public abstract class BasePrimitive<T> extends BaseElement implements IPrimitive
|
|||
return getClass().getSimpleName() + "[" + getValueAsString() + "]";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return new HashCodeBuilder().append(getValue()).toHashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (!(obj.getClass() == getClass())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
BasePrimitive<?> o = (BasePrimitive<?>)obj;
|
||||
|
||||
EqualsBuilder b = new EqualsBuilder();
|
||||
b.append(getValue(), o.getValue());
|
||||
return b.isEquals();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ public class SearchMethodBinding extends BaseResourceReturningMethodBinding {
|
|||
|
||||
@Override
|
||||
public GetClientInvocation invokeClient(Object[] theArgs) throws InternalErrorException {
|
||||
assert (myQueryName == null || ((theArgs != null ? theArgs.length : 0) == myParameters.size())) : "Wrong number of arguments: " + theArgs;
|
||||
assert (myQueryName == null || ((theArgs != null ? theArgs.length : 0) == myParameters.size())) : "Wrong number of arguments: " + (theArgs!=null?theArgs.length:"null");
|
||||
|
||||
Map<String, List<String>> queryStringArgs = new LinkedHashMap<String, List<String>>();
|
||||
|
||||
|
|
|
@ -100,19 +100,19 @@ public class PrettyPrintWriterWrapper implements XMLStreamWriter {
|
|||
@Override
|
||||
public void writeEmptyElement(String theNamespaceURI, String theLocalName) throws XMLStreamException {
|
||||
indent();
|
||||
writeEmptyElement(theNamespaceURI, theLocalName);
|
||||
myTarget.writeEmptyElement(theNamespaceURI, theLocalName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException {
|
||||
indent();
|
||||
writeEmptyElement(thePrefix, theLocalName, theNamespaceURI);
|
||||
myTarget.writeEmptyElement(thePrefix, theLocalName, theNamespaceURI);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeEmptyElement(String theLocalName) throws XMLStreamException {
|
||||
indent();
|
||||
writeEmptyElement(theLocalName);
|
||||
myTarget.writeEmptyElement(theLocalName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -826,9 +826,6 @@
|
|||
<param name="file" value="src/site/example/java/example/RestfulPatientResourceProviderMore.java" />
|
||||
</macro>
|
||||
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
The following snippet shows how to define various history methods in a client.
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue