@@ -230,7 +230,6 @@ public static <T> T convertProcToInterface(ThreadContext context, RubyObject rub
230230 return convertProcToInterface (context , (RubyBasicObject ) rubyObject , targetType );
231231 }
232232
233- @ SuppressWarnings ("unchecked" )
234233 public static <T > T convertProcToInterface (ThreadContext context , RubyBasicObject rubyObject , Class <T > targetType ) {
235234 // Capture original class; we only detach the singleton for natural Proc instances
236235 RubyClass procClass = rubyObject .getMetaClass ();
@@ -280,7 +279,6 @@ public static <T> NumericConverter<T> getNumericConverter(Class<T> target) {
280279 * @param object
281280 * @return true if the object is wrapping a Java object
282281 */
283- @ SuppressWarnings ("deprecation" )
284282 public static boolean isJavaObject (final IRubyObject object ) {
285283 return object instanceof JavaProxy ;
286284 }
@@ -291,7 +289,6 @@ public static boolean isJavaObject(final IRubyObject object) {
291289 * @return Java object
292290 * @see JavaUtil#isJavaObject(IRubyObject)
293291 */
294- @ SuppressWarnings ("deprecation" )
295292 public static <T > T unwrapJavaObject (final IRubyObject object ) {
296293 return (T ) ((JavaProxy ) object ).getObject ();
297294 }
@@ -302,7 +299,6 @@ public static <T> T unwrapJavaObject(final IRubyObject object) {
302299 * @return java object or passed object
303300 * @see JavaUtil#isJavaObject(IRubyObject)
304301 */
305- @ SuppressWarnings ("deprecation" )
306302 public static <T > T unwrapIfJavaObject (final IRubyObject object ) {
307303 if ( object instanceof JavaProxy ) {
308304 return (T ) ((JavaProxy ) object ).getObject ();
@@ -1471,7 +1467,6 @@ public static IRubyObject java_to_primitive(IRubyObject recv, IRubyObject object
14711467 }
14721468
14731469 @ Deprecated
1474- @ SuppressWarnings ("deprecation" )
14751470 public static IRubyObject primitive_to_java (IRubyObject recv , IRubyObject object , Block unusedBlock ) {
14761471 var context = ((RubyObject ) recv ).getCurrentContext ();
14771472 Object javaObject ;
0 commit comments