Skip to content

Instantly share code, notes, and snippets.

View rgra's full-sized avatar

Rabea Gransberger rgra

  • Bremen, Germany
View GitHub Profile
import lombok.EqualsAndHashCode;
public class EqualsNPE {
private String test = null;
@Override
public int hashCode() {
return test.hashCode();
}
@rgra
rgra / Java.setup
Created November 10, 2020 12:49
Setup file with SonarLint
<?xml version="1.0" encoding="UTF-8"?>
<setup:Product
xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
xmlns:workbench="http://www.eclipse.org/oomph/setup/workbench/1.0"
xsi:schemaLocation="http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/workbench/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Workbench.ecore"