Deprecated API


Contents
Deprecated Interfaces
com.atlassian.core.util.filter.Filter
          use Guava's Predicate instead 
 

Deprecated Classes
com.atlassian.core.filters.AbstractFilter
          since 4.0 use AbstractHttpFilter instead, which also does some casting for you. 
com.atlassian.core.util.collection.EasyList
          use the appropriate methods on Guava's ImmutableList, Lists, or Iterables 
com.atlassian.core.util.map.EasyMap
          use Guava's ImmutableMap. 
com.atlassian.core.util.filter.FilterChain
          use the utility methods on Guava's Predicates to combine Predicate 
com.atlassian.core.util.bean.ImageInfo
          Use ImageInfo instead (since 20/08/2008) 
com.atlassian.core.util.filter.ListFilter
          use Guava's Iterables.filter(). 
com.atlassian.core.util.thumbnail.SimpleImageConsumer
          Please use the following ImageGenerator directly via the com.atlassian.image:atlassian-image-consumer artifact 
 

Deprecated Methods
com.atlassian.core.util.collection.ArrayUtils.add(String[], String)
          use Guava's ObjectArrays.concat() 
com.atlassian.core.util.FileUtils.copy(InputStream, OutputStream)
          since 3.18 use IOUtils.copy(InputStream, OutputStream) 
com.atlassian.core.util.FileUtils.copy(InputStream, OutputStream, int)
          since 3.18 use IOUtils.copy(InputStream, OutputStream) 
com.atlassian.core.util.DateUtils.formatDurationString(long)
          You should be calling formatDurationPretty 
com.atlassian.core.filters.AbstractFilter.getFilterConfig()
          Not needed in final version of Servlet 2.3 API - replaced by init(). 
com.atlassian.core.util.thumbnail.Thumber.getImage(File)
          since 4.6.3. Use Thumber.getImage(java.io.File, com.google.common.base.Predicate) instead so that you can supply a predicate to (for example) check that the image has reasonable dimensions that are unlikely to cause an OutOfMemoryError 
com.atlassian.core.util.thumbnail.Thumber.getImage(InputStream)
          since 4.6.3. Use Thumber.getImage(com.atlassian.core.util.ReusableBufferedInputStream, com.google.common.base.Predicate) instead so that you can supply a predicate to (for example) check that the image has reasonable dimensions that are unlikely to cause an OutOfMemoryError 
com.atlassian.core.util.FileUtils.getInputStreamTextContent(InputStream)
          since 3.18 use IOUtils.toString(InputStream, String) 
com.atlassian.core.task.AbstractTaskQueue.getQueue()
          use getTasks() instead. 
com.atlassian.core.util.collection.EasyList.mergeLists(List, List, List)
          use Guava's Iterables.concat() 
com.atlassian.core.util.thumbnail.Thumber.scaleImageOld(Image, Thumber.WidthHeightHelper)
           
com.atlassian.core.filters.AbstractFilter.setFilterConfig(FilterConfig)
          Not needed in final version of Servlet 2.3 API - replaced by init(). 
com.atlassian.core.filters.ServletContextThreadLocal.setRequest(HttpServletRequest)
          since 2.16. This method is not longer a part of public API and should not be used from outside of com.atlassian.core.filters package. The visibility of this method will be changed to package private in the future; no replacement provided. 
com.atlassian.core.util.collection.EasyList.shallowSplit(List, int)
          use Guava's Lists.partition() 
com.atlassian.core.util.FileUtils.shutdownStream(InputStream)
          since 3.18 use IOUtils.closeQuietly(OutputStream) 
com.atlassian.core.util.FileUtils.shutdownStream(OutputStream)
          since 3.18 use IOUtils.closeQuietly(OutputStream) 
 



Copyright © 2015 Atlassian. All rights reserved.