Codota Logo
UnsafeMethods
Code IndexAdd Codota to your IDE (free)

How to use
UnsafeMethods
in
freemarker.ext.beans

Best Java code snippets using freemarker.ext.beans.UnsafeMethods (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.freemarker/freemarker

private static final Set createUnsafeMethodsSet() {
  try {
    Properties props = ClassUtil.loadProperties(BeansWrapper.class, UNSAFE_METHODS_PROPERTIES);
    Set set = new HashSet(props.size() * 4 / 3, 1f);
    Map primClasses = createPrimitiveClassesMap();
    for (Object key : props.keySet()) {
      try {
        set.add(parseMethodSpec((String) key, primClasses));
      } catch (ClassNotFoundException e) {
        if (ClassIntrospector.DEVELOPMENT_MODE) {
          throw e;
        }
      } catch (NoSuchMethodException e) {
        if (ClassIntrospector.DEVELOPMENT_MODE) {
          throw e;
        }
      }
    }
    return set;
  } catch (Exception e) {
    throw new RuntimeException("Could not load unsafe method set", e);
  }
}
origin: org.freemarker/freemarker

boolean isAllowedToExpose(Method method) {
  return exposureLevel < BeansWrapper.EXPOSE_SAFE || !UnsafeMethods.isUnsafeMethod(method);
}
origin: org.freemarker/freemarker-gae

private static final Set createUnsafeMethodsSet() {
  try {
    Properties props = ClassUtil.loadProperties(BeansWrapper.class, UNSAFE_METHODS_PROPERTIES);
    Set set = new HashSet(props.size() * 4 / 3, 1f);
    Map primClasses = createPrimitiveClassesMap();
    for (Object key : props.keySet()) {
      try {
        set.add(parseMethodSpec((String) key, primClasses));
      } catch (ClassNotFoundException e) {
        if (ClassIntrospector.DEVELOPMENT_MODE) {
          throw e;
        }
      } catch (NoSuchMethodException e) {
        if (ClassIntrospector.DEVELOPMENT_MODE) {
          throw e;
        }
      }
    }
    return set;
  } catch (Exception e) {
    throw new RuntimeException("Could not load unsafe method set", e);
  }
}
origin: org.freemarker/freemarker-gae

boolean isAllowedToExpose(Method method) {
  return exposureLevel < BeansWrapper.EXPOSE_SAFE || !UnsafeMethods.isUnsafeMethod(method);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

private static final Set createUnsafeMethodsSet() {
  try {
    Properties props = ClassUtil.loadProperties(BeansWrapper.class, UNSAFE_METHODS_PROPERTIES);
    Set set = new HashSet(props.size() * 4 / 3, 1f);
    Map primClasses = createPrimitiveClassesMap();
    for (Object key : props.keySet()) {
      try {
        set.add(parseMethodSpec((String) key, primClasses));
      } catch (ClassNotFoundException e) {
        if (ClassIntrospector.DEVELOPMENT_MODE) {
          throw e;
        }
      } catch (NoSuchMethodException e) {
        if (ClassIntrospector.DEVELOPMENT_MODE) {
          throw e;
        }
      }
    }
    return set;
  } catch (Exception e) {
    throw new RuntimeException("Could not load unsafe method set", e);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

boolean isAllowedToExpose(Method method) {
  return exposureLevel < BeansWrapper.EXPOSE_SAFE || !UnsafeMethods.isUnsafeMethod(method);
}
freemarker.ext.beansUnsafeMethods

Most used methods

  • createPrimitiveClassesMap
  • isUnsafeMethod
  • parseMethodSpec

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • InetAddress (java.net)
    This class represents an Internet Protocol (IP) address. An IP address is either a 32-bit or 128-bit
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now