Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
779649bf
Commit
779649bf
authored
Feb 29, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.3.x'
parents
d9f4d6ce
bb473c32
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
3 deletions
+43
-3
pom.xml
spring-boot-parent/pom.xml
+1
-1
pom.xml
spring-boot-tools/spring-boot-loader-tools/pom.xml
+4
-2
JarWriter.java
...java/org/springframework/boot/loader/tools/JarWriter.java
+3
-0
SignalUtils.java
...va/org/springframework/boot/loader/tools/SignalUtils.java
+1
-0
UsesUnsafeJava.java
...org/springframework/boot/loader/tools/UsesUnsafeJava.java
+34
-0
No files found.
spring-boot-parent/pom.xml
View file @
779649bf
...
...
@@ -294,7 +294,7 @@
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
animal-sniffer-maven-plugin
</artifactId>
<version>
1.1
4
</version>
<version>
1.1
5
</version>
</plugin>
<plugin>
<groupId>
org.codehaus.cargo
</groupId>
...
...
spring-boot-tools/spring-boot-loader-tools/pom.xml
View file @
779649bf
...
...
@@ -132,8 +132,10 @@
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
animal-sniffer-maven-plugin
</artifactId>
<configuration>
<!-- The use of SignalUtils seems to mess up animal sniffer -->
<skip>
true
</skip>
<annotations>
<annotation>
org.springframework.boot.loader.tools.UsesUnsafeJava
</annotation>
<annotation>
org.springframework.lang.UsesJava7
</annotation>
</annotations>
</configuration>
</plugin>
</plugins>
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java
View file @
779649bf
...
...
@@ -42,6 +42,8 @@ import java.util.jar.Manifest;
import
java.util.zip.CRC32
;
import
java.util.zip.ZipEntry
;
import
org.springframework.lang.UsesJava7
;
/**
* Writes JAR content, ensuring valid directory entries are always create and duplicate
* items are ignored.
...
...
@@ -86,6 +88,7 @@ public class JarWriter {
this
.
jarOutput
=
new
JarOutputStream
(
fileOutputStream
);
}
@UsesJava7
private
void
setExecutableFilePermission
(
File
file
)
{
try
{
Path
path
=
file
.
toPath
();
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java
View file @
779649bf
...
...
@@ -26,6 +26,7 @@ import sun.misc.SignalHandler;
* @since 1.1.0
*/
@SuppressWarnings
(
"restriction"
)
@UsesUnsafeJava
public
final
class
SignalUtils
{
private
static
final
Signal
SIG_INT
=
new
Signal
(
"INT"
);
...
...
spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/UsesUnsafeJava.java
0 → 100644
View file @
779649bf
/*
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org
.
springframework
.
boot
.
loader
.
tools
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* Indicates that the annotated element uses unsafe Java calls.
*
* @author Phillip Webb
*/
@Retention
(
RetentionPolicy
.
CLASS
)
@Target
({
ElementType
.
METHOD
,
ElementType
.
CONSTRUCTOR
,
ElementType
.
TYPE
})
@Documented
@interface
UsesUnsafeJava
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment