mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Setting target version of maven compiler plugin to 1.7
This commit is contained in:
parent
2dc1c7341a
commit
85aec417e5
@ -55,17 +55,11 @@ public class FaultMessageBodyWriter implements MessageBodyWriter<FaultResponse>
|
||||
public void writeTo(FaultResponse faultResponse, Class<?> aClass, Type type, Annotation[] annotations,
|
||||
MediaType mediaType, MultivaluedMap<String, Object> stringObjectMultivaluedMap,
|
||||
OutputStream outputStream) throws IOException, WebApplicationException {
|
||||
OutputStreamWriter writer = null;
|
||||
try {
|
||||
writer = new OutputStreamWriter(outputStream, UTF_8);
|
||||
try (OutputStreamWriter writer = new OutputStreamWriter(outputStream, UTF_8)) {
|
||||
JsonObject response = new JsonObject();
|
||||
response.addProperty("error", faultResponse.getCode().getValue());
|
||||
response.addProperty("error_description", faultResponse.getDescription());
|
||||
getGson().toJson(response, type, writer);
|
||||
} finally {
|
||||
if (writer != null) {
|
||||
writer.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
20
pom.xml
20
pom.xml
@ -945,16 +945,16 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!--<plugin>-->
|
||||
<!--<groupId>org.apache.maven.plugins</groupId>-->
|
||||
<!--<artifactId>maven-compiler-plugin</artifactId>-->
|
||||
<!--<version>2.3.1</version>-->
|
||||
<!--<configuration>-->
|
||||
<!--<encoding>UTF-8</encoding>-->
|
||||
<!--<source>1.6</source>-->
|
||||
<!--<target>1.6</target>-->
|
||||
<!--</configuration>-->
|
||||
<!--</plugin>-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<configuration>
|
||||
<encoding>UTF-8</encoding>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user