Skip to content

Instantly share code, notes, and snippets.

Avatar
🤓
Streaming data changes, one at a time.

Gunnar Morling gunnarmorling

🤓
Streaming data changes, one at a time.
View GitHub Profile
View Jbang.java
public class Jbang {
public static void main(String... args) {
String heyRick = """
`````````.-::/+oooooo+ooo++/-.........```...--..-..--......................`...`````...-://++++++/////+++++++++//+++++++++++++++++++++++++++
`````.```..----/+oooooooooooo+:-.................---------------::-...`........`........-://++/+++//++++++++++////+++++++++++++++++++///+++/
`````````..--.--:/+oooooooooooo+/-....................---------://///:--.....```..`......-:////////////+++++////+++++++++o++++ooooo+++++++++
````````........--:/ossoooooooooo+/:-.................--------:::///++++/:-...```.........-://///+++++++++++++++++++++++++++/+++++++++++++++
``````````.`...``..-:/ooooooooooooo+/----.....----..------::::///::-://::::::-......`......-:///////++++++/++++++ooo+++//+++///++++++++++++/
``````````.````````...:+ooooooooo+/:----.----:::///:::///////////:::://::/+++/:--..`........-://///+++++++///+++++++++++++++++++++++++///+//
``````````...``.````...-/ooosso/::--......---:///////:::::------..--:////+
View QuantityUserType.java
package dev.morling.demos.usertype;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Types;
import java.util.Objects;
View CdiTestBase.java
package com.example.cditest;
import java.util.HashMap;
import java.util.Map;
import javax.enterprise.context.spi.CreationalContext;
import javax.enterprise.inject.se.SeContainer;
import javax.enterprise.inject.se.SeContainerInitializer;
import javax.enterprise.inject.spi.AnnotatedType;
import javax.enterprise.inject.spi.BeanManager;
View HV-1684.java
/*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.test.internal.engine.valueextraction;
import java.util.HashMap;
import java.util.Map;
View hibernate-validator-deptective.json
{
"packages": [
{
"name": "org.hibernate.validator",
"reads": [
"org.hibernate.validator.cfg",
"org.hibernate.validator.internal.engine",
"org.hibernate.validator.metadata",
"org.hibernate.validator.spi.properties",
"org.hibernate.validator.spi.resourceloading",
View stacktrace.txt
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to module javassist
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:198)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:192)
at javassist@3.20.0-GA/javassist.util.proxy.SecurityActions.setAccessible(SecurityActions.java:103)
at javassist@3.20.0-GA/javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:181)
at javassist@3.20.0-GA/javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:164)
at javassist@3.20.0-GA/javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory
View module-info.java
org.hibernate.validator@6.0.4.Final jar:file:hibernate-validator-6.0.4.Final.jar/!module-info.class
exports org.hibernate.validator
exports org.hibernate.validator.cfg
exports org.hibernate.validator.cfg.context
exports org.hibernate.validator.cfg.defs
exports org.hibernate.validator.cfg.defs.br
exports org.hibernate.validator.cfg.defs.pl
exports org.hibernate.validator.constraints
exports org.hibernate.validator.constraints.br
exports org.hibernate.validator.constraints.pl
View container_element_constraints.xml
<bean class="Customer" ignore-annotations="false">
<field name="listOfmails">
<!-- typeArgumentIndex optional if there is only one type argument or it's an array -->
<containerElementType typeArgumentIndex="0">
<constraint annotation="javax.validation.constraints.Email"/>
</containerElementType>
</field>
<field name="mapOfListOfmails">
<containerElementType typeArgumentIndex="1">
View 01_FishTank.java
public class FishTank {
public List<Map<String, Set<@NotNull String>>> getTagsOfFishesOfTheWeek() { ... }
}
View MultipleExtractedValue.java
// Should we reject it?
public class DoubleExtractor implements ValueExtractor<Multimap<@ExtractedValue ?, @ExtractedValue ?>> {
@Override
public void extractValues(Multimap<?, ?> originalValue, ValueExtractor.ValueReceiver receiver) {
...
}
}
You can’t perform that action at this time.