Skip to content

Commit

Permalink
#231 moves annotations to the runtime module, which can then be
Browse files Browse the repository at this point in the history
safely inherited transitively
  • Loading branch information
UnquietCode committed Aug 6, 2017
1 parent c305e47 commit 3407af1
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 4 deletions.
Expand Up @@ -16,7 +16,7 @@

package unquietcode.tools.flapi.annotations;

import unquietcode.tools.flapi.Constants;
import unquietcode.tools.flapi.runtime.Constants;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
Expand Up @@ -16,7 +16,7 @@

package unquietcode.tools.flapi.annotations;

import unquietcode.tools.flapi.Constants;
import unquietcode.tools.flapi.runtime.Constants;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down
@@ -0,0 +1,27 @@
/*********************************************************************
Copyright 2016 the Flapi authors
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.
See the License for the specific language governing permissions and
limitations under the License.
********************************************************************/

package unquietcode.tools.flapi.runtime;

/**
* @author Ben Fagin
* @version 2016-04-23
*/
public final class Constants {
private Constants() { }

public static final int DEFAULT_NULL_INT = Integer.MIN_VALUE;
}
1 change: 0 additions & 1 deletion src/main/java/unquietcode/tools/flapi/Constants.java
Expand Up @@ -31,7 +31,6 @@ private Constants() { }
public static final String PROJECT_URL = "https://github.com/UnquietCode/Flapi";
public static final String RETURN_TYPE_NAME = "_ReturnType";
public static final String HELPER_VALUE_NAME = "_helper";
public static final int DEFAULT_NULL_INT = Integer.MIN_VALUE;

public static final String PROJECT_VERSION; static {
InputStream is = Constants.class.getClassLoader().getResourceAsStream("version/version.txt");
Expand Down
Expand Up @@ -18,7 +18,6 @@

import com.google.common.base.Function;
import com.google.common.base.Functions;
import unquietcode.tools.flapi.Constants;
import unquietcode.tools.flapi.DescriptorBuilderException;
import unquietcode.tools.flapi.IntrospectorSupport;
import unquietcode.tools.flapi.beans.BeanIntrospector;
Expand All @@ -31,6 +30,7 @@
import unquietcode.tools.flapi.outline.BlockOutline;
import unquietcode.tools.flapi.outline.DescriptorOutline;
import unquietcode.tools.flapi.outline.MethodOutline;
import unquietcode.tools.flapi.runtime.Constants;
import unquietcode.tools.flapi.runtime.EnumSelectorHint;
import unquietcode.tools.flapi.runtime.Helpers;
import unquietcode.tools.flapi.runtime.SpringMethodUtils;
Expand Down

0 comments on commit 3407af1

Please sign in to comment.