aboutsummaryrefslogtreecommitdiff
path: root/src/javac-only-stubs
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2013-07-22 23:23:46 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2013-07-22 23:23:46 +0200
commit45697b50816df79475a8bb69dc89ff68747fbfe6 (patch)
tree25cb023eec1f74baf5063cc5a58a5351ee43d6f0 /src/javac-only-stubs
parent4c03e3d220900431085897878d4888bf530b31ec (diff)
parentdeed98be16e5099af52d951fc611f86a82a42858 (diff)
downloadlombok-45697b50816df79475a8bb69dc89ff68747fbfe6.tar.gz
lombok-45697b50816df79475a8bb69dc89ff68747fbfe6.tar.bz2
lombok-45697b50816df79475a8bb69dc89ff68747fbfe6.zip
Merge branch 'master' into jdk8. Also added some major fixes whilst merging.
Conflicts: src/core/lombok/javac/handlers/JavacHandlerUtil.java src/utils/lombok/javac/CommentCatcher.java src/utils/lombok/javac/Javac.java
Diffstat (limited to 'src/javac-only-stubs')
-rw-r--r--src/javac-only-stubs/com/sun/tools/javac/util/Context.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/javac-only-stubs/com/sun/tools/javac/util/Context.java b/src/javac-only-stubs/com/sun/tools/javac/util/Context.java
new file mode 100644
index 00000000..06b8ff4d
--- /dev/null
+++ b/src/javac-only-stubs/com/sun/tools/javac/util/Context.java
@@ -0,0 +1,31 @@
+/*
+ * These are stub versions of various bits of javac-internal API (for various different versions of javac). Lombok is compiled against these.
+ */
+package com.sun.tools.javac.util;
+
+public class Context {
+ public static class Key<T> {
+ }
+
+ public interface Factory<T> {
+ T make(Context c);
+ T make();
+ }
+
+ public <T> void put(Key<T> key, Factory<T> fac) {
+ }
+
+ public <T> void put(Key<T> key, T data) {
+ }
+
+ public <T> void put(Class<T> clazz, T data) {
+ }
+
+ public <T> T get(Key<T> key) {
+ return null;
+ }
+
+ public <T> T get(Class<T> clazz) {
+ return null;
+ }
+}