Skip navigation links
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Interfaces
  • Classes
  • Exceptions
  • Methods
  • Constructors
  • Deprecated Interfaces
    Interface
    Description
    com.mchange.util.CommandLineParser
    Use com.mchange.v2.cmdline.CommandLineUtils instead
    com.mchange.util.ObjectCache
    use com.mchange.v1.util.ObjectCache
    com.mchange.v1.lang.holders.ThreadSafeBooleanHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeByteHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeCharHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeDoubleHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeFloatHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeIntHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeLongHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.ThreadSafeShortHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.util.RunnableQueue
    use com.mchange.v2.async.RunnableQueue
  • Deprecated Classes
    Class
    Description
    com.mchange.io.impl.DirectoryDescendingFileFinderImpl
    use com.mchange.v2.io.DirectoryDescentUtils
    com.mchange.io.InputStreamUtils
    -- use com.mchange.v1.io.InputStreamUtils
    com.mchange.io.OutputStreamUtils
    use com.mchange.v1.io.OutputStreamUtils
    com.mchange.io.SerializableUtils
    use com.mchange.v2.ser.SerializableUtils
    com.mchange.io.WriterUtils
    use com.mchange.v1.io.WriterUtils
    com.mchange.lang.ArrayUtils
    use com.mchange.v1.util.ArrayUtils
    com.mchange.lang.ObjectUtils
    use com.mchange.v2.ser.SerializableUtils;
    com.mchange.lang.StringUtils
    use com.mchange.v2.lang.StringUtils (JDK 1.4+)
    com.mchange.net.SocketUtils
    use com.mchange.net.v1.net.SocketUtils
    com.mchange.util.impl.CommandLineParserImpl
    Use com.mchange.v2.cmdline.CommandLineUtils instead
    com.mchange.v1.db.sql.ConnectionEventSupport
    use com.mchange.v2.c3p0.util.ConectionEventSupport
    com.mchange.v1.db.sql.DriverManagerDataSource
    use com.mchange.v2.c3p0.DriverManagerDataSource
    com.mchange.v1.db.sql.SqlUtils
    use com.mchange.v2.sql.SqlUtils
    com.mchange.v1.lang.holders.SynchronizedBooleanHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedByteHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedCharHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedDoubleHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedFloatHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedIntHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedLongHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.SynchronizedShortHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.VolatileBooleanHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.VolatileByteHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.VolatileCharHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.VolatileFloatHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.VolatileIntHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.holders.VolatileShortHolder
    use classes in com.mchange.v2.holders
    com.mchange.v1.lang.NullUtils
    use com.mchange.v2.ObjectUtils.eqOrBothNull()
    com.mchange.v1.util.AbstractResourcePool
    use com.mchange.v1.resourcepool.AbstractResourcePool
    com.mchange.v1.util.CleanupUtils
    use functions in per-closeable resouce utility classes
    com.mchange.v1.util.MapUtils
    Oops! Doesn't conform to Map equals() / hashCode() contract!
    com.mchange.v1.util.SimpleRunnableQueue
    use com.mchange.v2.async.SimpleRunnableQueue
    com.mchange.v2.async.SimpleRunnableQueue
    CarefulRunnableQueue is better.
    com.mchange.v2.codegen.IndentedWriter
    -- please user com.mchange.v2.io.IndentedWriter
    com.mchange.v2.encounter.EqualityEncounterCounter
    -- Use of WeakHashMap can't properly guarantee counts with equality semantics, as an Object can be encounted garbage collected, then re-encountered with no apparent history. Clients should explicit choose the semantics they want via WeakEqualityEncounterCounter or StrongEqualityEncounterCounter
    com.mchange.v2.encounter.IdentityEncounterCounter
    use WeakIdentityEncounterCounter (name changed to emphasize for library users that they need to understand whether implementations are weak or strong to avoid accidental reference retention in strong counters)
    com.mchange.v2.lang.TypeResolutionUtils
    delete me
    com.mchange.v2.naming.ReferenceableUtils.ExtractRec
    nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.
  • Deprecated Exceptions
    Exceptions
    Description
    com.mchange.io.UnsupportedVersionException
    use com.mchange.v2.ser.UnsupportedVersionException
    com.mchange.lang.PotentiallySecondaryException
    jdk 1.4 mow includes this idea as part of the standard Throwable/Exception classes.
  • Deprecated Methods
    Method
    Description
    com.mchange.lang.ByteUtils.toUnsigned(byte)
    prefer unsignedPromote(...)
    com.mchange.v1.util.ArrayUtils.stringifyContents(Object[])
    use the various toString(T[] methods)
    com.mchange.v1.xml.DomParseUtils.allTextFromElement(Element)
    use allText(Element elem)
    com.mchange.v1.xml.DomParseUtils.allTextFromElement(Element, boolean)
    use allText(Element elem, boolean trim)
    com.mchange.v1.xml.DomParseUtils.attrValFromElement(Element, String)
    use Element.getAttribute(String val)
    com.mchange.v1.xml.DomParseUtils.getImmediateChildElementsByTagName(Element, String)
    use immediateChildrenByTagName( Element parent, String tagName )
    com.mchange.v1.xml.DomParseUtils.uniqueChildByTagName(Element, String)
    use uniqueChild(Element elem, String childTagName)
    com.mchange.v1.xml.DomParseUtils.uniqueImmediateChildByTagName(Element, String)
    use uniqueImmediateChild(Element elem, String childTagName)
    com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig()
    Please use the MConfig facade class to acquire configuration
    com.mchange.v2.cfg.MultiPropertiesConfig.readVmConfig(String[], String[])
    Please use the MConfig facade class to acquire configuration
    com.mchange.v2.codegen.bean.BeangenUtils.writePropertyMember(Property, IndentedWriter)
    use writePropertyVariable
    com.mchange.v2.codegen.bean.BeangenUtils.writePropertyMember(Property, String, IndentedWriter)
    use writePropertyVariable
    com.mchange.v2.codegen.bean.SimplePropertyBeanGenerator.writePropertyMember(Property)
     
    com.mchange.v2.codegen.bean.SimplePropertyBeanGenerator.writePropertyMembers()
     
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion10()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion11()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion12()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion13()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion14()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion15()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion16()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isAtLeastJavaVersion17()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isJavaVersion10()
    ambiguous between "one dot zero" and "ten"
    com.mchange.v2.lang.VersionUtils.isJavaVersion11()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isJavaVersion12()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isJavaVersion13()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isJavaVersion14()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.lang.VersionUtils.isJavaVersion15()
    ambiguous between "one dot x" and "x"
    com.mchange.v2.log.FallbackMLog.overrideCutoffLevel(MLevel)
    use setOverrideCutoffLevel(...)
    com.mchange.v2.log.MLogger.addHandler(Object)
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.getFilter()
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.getHandlers()
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.getLevel()
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.getResourceBundle()
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.getResourceBundleName()
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.getUseParentHandlers()
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.removeHandler(Object)
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.setFilter(Object)
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.setLevel(MLevel)
    stick to common denominator logging through MLog facade
    com.mchange.v2.log.MLogger.setUseParentHandlers(boolean)
    stick to common denominator logging through MLog facade
    com.mchange.v2.naming.ReferenceableUtils.appendToReference(Reference, Reference)
    nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.
    com.mchange.v2.naming.ReferenceableUtils.extractNestedReference(Reference, int)
    nesting references seemed useful until I realized that references are Serializable and can be stored in a BinaryRefAddr. Oops.
    com.mchange.v2.ser.SerializableUtils.deserializeFromByteArray(byte[])
    use SerialializableUtils.fromByteArray() [shorter name is better!]
    com.mchange.v2.ser.SerializableUtils.serializeToByteArray(Object)
    use SerialializableUtils.toByteArray() [shorter name is better!]
  • Deprecated Constructors
    Constructor
    Description
    com.mchange.v1.util.UnexpectedException(Throwable, String)