Skip to content

Commit ad16706

Browse files
committed
Suppress unchecked warning with JRuby 1.7.22
1 parent 9c40adb commit ad16706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-context/src/main/java/org/springframework/scripting/jruby/JRubyScriptUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2014 the original author or authors.
2+
* Copyright 2002-2015 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -95,6 +95,7 @@ public static Object createJRubyObject(String scriptSource, Class<?>[] interface
9595
/**
9696
* Initializes an instance of the {@link org.jruby.Ruby} runtime.
9797
*/
98+
@SuppressWarnings("unchecked")
9899
private static Ruby initializeRuntime() {
99100
return JavaEmbedUtils.initialize(Collections.EMPTY_LIST);
100101
}

0 commit comments

Comments
 (0)