Skip to content

Commit

Permalink
just some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin1978 committed Jan 21, 2017
1 parent 684f28d commit c9d5160
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 42 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://api.travis-ci.org/springside/springside4.png?branch=master)](https://travis-ci.org/springside/springside4/)
travis-ci status:[![Build Status](https://api.travis-ci.org/springside/springside4.png?branch=master)](https://travis-ci.org/springside/springside4/)

SpringSide是以Spring Framework为核心的,Pragmatic风格的JavaEE应用参考示例,是JavaEE世界中的主流技术选型,最佳实践的总结与演示。

Expand Down
31 changes: 1 addition & 30 deletions modules/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -136,36 +137,6 @@
</execution>
</executions>
</plugin>

<!-- 打包测试用的jar包,classfier为tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
<configuration>
<includes>
<include>org/springside/modules/test/**/*.class</include>
<include>jetty/webdefault-windows.xml</include>
</includes>
<excludes>
<exclude>org/springside/modules/test/**/*Test.class</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>

<!-- enforcer, 规则统一定义在parent -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
</plugin>
</plugins>
</build>
</project>
9 changes: 2 additions & 7 deletions modules/metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<junit.version>4.12</junit.version>
<assertj.version>2.6.0</assertj.version>
<mockito.version>1.10.19</mockito.version>

<!-- Plugin的属性 -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.7</java.version>
Expand Down Expand Up @@ -63,6 +63,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -72,12 +73,6 @@
</execution>
</executions>
</plugin>

<!-- enforcer, 规则统一定义在parent -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public IntObjectHashMap(int initialCapacity, float loadFactor) {

// Allocate the arrays.
keys = new int[capacity];
@SuppressWarnings({ "unchecked", "SuspiciousArrayCast" })
@SuppressWarnings({ "unchecked" })
V[] temp = (V[]) new Object[capacity];
values = temp;

Expand Down Expand Up @@ -453,7 +453,7 @@ private void rehash(int newCapacity) {
V[] oldVals = values;

keys = new int[newCapacity];
@SuppressWarnings({ "unchecked", "SuspiciousArrayCast" })
@SuppressWarnings({ "unchecked" })
V[] temp = (V[]) new Object[newCapacity];
values = temp;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public LongObjectHashMap(int initialCapacity, float loadFactor) {

// Allocate the arrays.
keys = new long[capacity];
@SuppressWarnings({ "unchecked", "SuspiciousArrayCast" })
@SuppressWarnings({ "unchecked" })
V[] temp = (V[]) new Object[capacity];
values = temp;

Expand Down Expand Up @@ -455,7 +455,7 @@ private void rehash(int newCapacity) {
V[] oldVals = values;

keys = new long[newCapacity];
@SuppressWarnings({ "unchecked", "SuspiciousArrayCast" })
@SuppressWarnings({ "unchecked"})
V[] temp = (V[]) new Object[newCapacity];
values = temp;

Expand Down

0 comments on commit c9d5160

Please sign in to comment.