Skip to content

Instantly share code, notes, and snippets.

@TuomasKiviaho
TuomasKiviaho / com.mysema.query.jpa.Conversions
Created January 9, 2014 12:06
Here's a recursive approach on how to implement conversions using a visitor (which is based logic found in CollectionAnyVisitor and others).
/*
* Copyright 2012, Mysema Ltd
*
* 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.
package com.google.common.collect;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Collection;
import java.util.NoSuchElementException;
import java.util.function.Predicate;
@SuppressWarnings("serial")
@TuomasKiviaho
TuomasKiviaho / issue-128.patch
Created June 18, 2020 08:01
sirthias/parboiled: JDK11 reporting illegal reflective access #128
diff --git a/parboiled-java/src/main/java/org/parboiled/transform/ASMSettings.java b/parboiled-java/src/main/java/org/parboiled/transform/ASMSettings.java
index af0876f..f16a66a 100644
--- a/parboiled-java/src/main/java/org/parboiled/transform/ASMSettings.java
+++ b/parboiled-java/src/main/java/org/parboiled/transform/ASMSettings.java
@@ -9,6 +9,7 @@
public class ASMSettings
{
public static final int ASM_API = Opcodes.ASM7;
+ @Deprecated
public static final int JDK_VERSION = Opcodes.V1_7;