Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
(TWILL-253) Remove support for Java 7
Browse files Browse the repository at this point in the history
  • Loading branch information
chtyim committed Jan 6, 2020
1 parent e2fe9d1 commit ea451e1
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 32 deletions.
1 change: 1 addition & 0 deletions checkstyle.xml
Expand Up @@ -96,6 +96,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
<!-- This ensures that static imports go to the end. -->
<property name="option" value="bottom"/>
<property name="tokens" value="STATIC_IMPORT, IMPORT"/>
<property name="separated" value="true"/>
</module>

<!--
Expand Down
33 changes: 13 additions & 20 deletions pom.xml
Expand Up @@ -192,6 +192,15 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
Expand All @@ -212,7 +221,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9</version>
<version>3.1.1</version>
<configuration>
<excludePackageNames>*.internal.*:echo:*.example.*</excludePackageNames>
<links>
Expand All @@ -235,14 +244,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.11</version>
<dependencies>
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
<version>6.5</version>
</dependency>
</dependencies>
<version>3.1.0</version>
<executions>
<execution>
<id>validate</id>
Expand All @@ -253,7 +255,7 @@
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<sourceDirectory>${project.build.sourceDirectory}/..</sourceDirectory>
<sourceDirectories>${project.build.sourceDirectory}/..</sourceDirectories>
</configuration>
<goals>
<goal>check</goal>
Expand All @@ -264,7 +266,7 @@
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.11</version>
<version>0.13</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
Expand Down Expand Up @@ -304,31 +306,22 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>0.11</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.12.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
10 changes: 0 additions & 10 deletions twill-java8-test/pom.xml
Expand Up @@ -57,16 +57,6 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
Expand Down
Expand Up @@ -753,7 +753,7 @@ private void addContainerRequests(Resource capability,
private void launchRunnable(List<? extends ProcessLauncher<YarnContainerInfo>> launchers,
Queue<ProvisionRequest> provisioning) {
for (ProcessLauncher<YarnContainerInfo> processLauncher : launchers) {
LOG.info("Container allocated: {}", processLauncher.getContainerInfo().getContainer());
LOG.info("Container allocated: {}", processLauncher.getContainerInfo().<Object>getContainer());
ProvisionRequest provisionRequest = provisioning.peek();
if (provisionRequest == null) {
continue;
Expand Down
Expand Up @@ -144,7 +144,7 @@ public final synchronized void allocate(float progress, AllocateHandler handler)
if (!launcher.isLaunched()) {
YarnContainerInfo containerInfo = launcher.getContainerInfo();
// Casting is needed in Java 8, otherwise it complains about ambiguous method over the info(String, Throwable)
LOG.info("Nothing to run in container, releasing it: {}", containerInfo.getContainer());
LOG.info("Nothing to run in container, releasing it: {}", containerInfo.<Object>getContainer());
releaseAssignedContainer(containerInfo);
}
}
Expand Down

0 comments on commit ea451e1

Please sign in to comment.