diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-01-15 21:43:39 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2014-01-15 21:43:54 +0100 |
commit | 09ea02e4f5752e615be2ff5177be1fb328702a5b (patch) | |
tree | 0c6a42abb24885ea3cfaf5d8d85db815156f801a /src/core/lombok/eclipse/handlers/HandleNonNull.java | |
parent | 69d82faa74364baf8a8ddef88e145a8a05d5dee0 (diff) | |
download | lombok-09ea02e4f5752e615be2ff5177be1fb328702a5b.tar.gz lombok-09ea02e4f5752e615be2ff5177be1fb328702a5b.tar.bz2 lombok-09ea02e4f5752e615be2ff5177be1fb328702a5b.zip |
added package-infos to lots of packages, updated the javadoc in these, and made lots of private/package private methods 'public' in packages that aren't actually public API. Tumi asked for this, and I can imagine this is useful for others who are hacking add-ons to lombok. The package-info files clarify that we aren't committing to long-term stability of anything except the stuff directly in the lombok package, lombok.experimental, and lombok.extern.
Diffstat (limited to 'src/core/lombok/eclipse/handlers/HandleNonNull.java')
-rw-r--r-- | src/core/lombok/eclipse/handlers/HandleNonNull.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleNonNull.java b/src/core/lombok/eclipse/handlers/HandleNonNull.java index 634cb2d9..7fd12ca3 100644 --- a/src/core/lombok/eclipse/handlers/HandleNonNull.java +++ b/src/core/lombok/eclipse/handlers/HandleNonNull.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 The Project Lombok Authors. + * Copyright (C) 2013-2014 The Project Lombok Authors. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -142,11 +142,11 @@ public class HandleNonNull extends EclipseAnnotationHandler<NonNull> { annotationNode.up().up().rebuild(); } - private boolean isNullCheck(Statement stat) { + public boolean isNullCheck(Statement stat) { return returnVarNameIfNullCheck(stat) != null; } - private char[] returnVarNameIfNullCheck(Statement stat) { + public char[] returnVarNameIfNullCheck(Statement stat) { if (!(stat instanceof IfStatement)) return null; /* Check that the if's statement is a throw statement, possibly in a block. */ { |