//# 1 errors, 153 messages
//#
/*
    //#blogbylastmodifieddatecomparator.java:1:1: class: net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator
    //#blogbylastmodifieddatecomparator.java:1:1: method: net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init
    //#blogbylastmodifieddatecomparator.java:1: method: int net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.compare(Object, Object)
    //#input(int compare(Object, Object)): Param_0
    //#input(int compare(Object, Object)): Param_0.__Tag
    //#input(int compare(Object, Object)): Param_1
    //#input(int compare(Object, Object)): Param_1.__Tag
    //#input(int compare(Object, Object)): Param_1.blogEntryIndex
    //#input(int compare(Object, Object)): Param_1.blogEntryIndex.__Tag
    //#input(int compare(Object, Object)): Param_1.blogEntryIndex.publishedIndexEntries
    //#input(int compare(Object, Object)): Param_2
    //#input(int compare(Object, Object)): Param_2.__Tag
    //#input(int compare(Object, Object)): Param_2.blogEntryIndex
    //#input(int compare(Object, Object)): Param_2.blogEntryIndex.__Tag
    //#input(int compare(Object, Object)): Param_2.blogEntryIndex.publishedIndexEntries
    //#input(int compare(Object, Object)): __Descendant_Table[net/sourceforge/pebble/comparator/BlogByLastModifiedDateComparator]
    //#input(int compare(Object, Object)): __Descendant_Table[others]
    //#input(int compare(Object, Object)): __Dispatch_Table.compare(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Blog;)I
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getLastModified()Ljava/util/Date;
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getRecentPublishedBlogEntries(I)Ljava/util/List;
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/Blog.log
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getDate()Ljava/util/Date;
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/BlogService.__Descendant_Table[net/sourceforge/pebble/domain/BlogService]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/domain/BlogService.__Dispatch_Table.getBlogEntry(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Lnet/sourceforge/pebble/domain/BlogEntry;
    //#input(int compare(Object, Object)): net/sourceforge/pebble/index/BlogEntryIndex.__Descendant_Table[net/sourceforge/pebble/index/BlogEntryIndex]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/index/BlogEntryIndex.__Descendant_Table[others]
    //#input(int compare(Object, Object)): net/sourceforge/pebble/index/BlogEntryIndex.__Dispatch_Table.getPublishedBlogEntries()Ljava/util/List;
    //#output(int compare(Object, Object)): return_value
    //#pre[2] (int compare(Object, Object)): Param_0.__Tag == net/sourceforge/pebble/comparator/BlogByLastModifiedDateComparator
    //#pre[3] (int compare(Object, Object)): Param_1 != null
    //#pre[5] (int compare(Object, Object)): Param_1.blogEntryIndex != null
    //#pre[6] (int compare(Object, Object)): Param_1.blogEntryIndex.__Tag == net/sourceforge/pebble/index/BlogEntryIndex
    //#pre[7] (int compare(Object, Object)): init'ed(Param_1.blogEntryIndex.publishedIndexEntries)
    //#pre[8] (int compare(Object, Object)): Param_2 != null
    //#pre[10] (int compare(Object, Object)): Param_2.blogEntryIndex != null
    //#pre[11] (int compare(Object, Object)): Param_2.blogEntryIndex.__Tag == net/sourceforge/pebble/index/BlogEntryIndex
    //#pre[12] (int compare(Object, Object)): init'ed(Param_2.blogEntryIndex.publishedIndexEntries)
    //#pre[4] (int compare(Object, Object)): (soft) Param_1.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[9] (int compare(Object, Object)): (soft) Param_2.__Tag == net/sourceforge/pebble/domain/Blog
    //#post(int compare(Object, Object)): init'ed(return_value)
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getLastModified
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.Date:compareTo
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.List:size
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.List:get
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.Date
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getConfiguredFactory
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getBlogEntryDAO
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getBlog
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getId
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getCompositeKeyForBlogEntry
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:setPersistent
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:setEventsEnabled
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:net.sourceforge.pebble.domain.BlogServiceException
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:net.sf.ehcache.Cache:get
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:net.sf.ehcache.Element:getValue
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:org.apache.commons.logging.Log:debug
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:loadBlogEntry
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:net.sf.ehcache.Element
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:net.sf.ehcache.Cache:put
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:clone
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:getBlogEntry
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.util.List:add
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:org.apache.commons.logging.Log:error
    //#blogbylastmodifieddatecomparator.java:1: end of method: int net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.compare(Object, Object)
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.comparator;

import net.sourceforge.pebble.domain.Blog;

import java.util.Comparator;

/**
 * A comparator used to order Blog instances, in reverse order of the
 * that they were last modified.
 *
 * @author    Simon Brown
 */
public class BlogByLastModifiedDateComparator implements Comparator<Blog> {
    //#blogbylastmodifieddatecomparator.java:44: method: void net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator()
    //#blogbylastmodifieddatecomparator.java:44: end of method: void net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator()

  /**
   * Compares two objects.
   *
   * @param b1  blog 1
   * @param b2  blog 2
   * @return  -n, 0 or +n if the last modified date of the second blog is less
   *          than, the same as or greater than the first, respectively
   */
  public int compare(Blog b1, Blog b2) {
    return b2.getLastModified().compareTo(b1.getLastModified());
    //#blogbylastmodifieddatecomparator.java:55: method: int net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.compare(Blog, Blog)
    //#blogbylastmodifieddatecomparator.java:55: ?null dereference
    //#    getLastModified(...) != null
    //#    severity: MEDIUM
    //#    class: net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator
    //#    method: int compare(Blog, Blog)
    //#    basic block: Entry_BB_1
    //#    assertion: getLastModified(...) != null
    //#    VN: getLastModified(...)
    //#    Expected: Inverse{null} or Invalid
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad
    //#input(int compare(Blog, Blog)): b1
    //#input(int compare(Blog, Blog)): b1.__Tag
    //#input(int compare(Blog, Blog)): b1.blogEntryIndex
    //#input(int compare(Blog, Blog)): b1.blogEntryIndex.__Tag
    //#input(int compare(Blog, Blog)): b1.blogEntryIndex.publishedIndexEntries
    //#input(int compare(Blog, Blog)): b2
    //#input(int compare(Blog, Blog)): b2.__Tag
    //#input(int compare(Blog, Blog)): b2.blogEntryIndex
    //#input(int compare(Blog, Blog)): b2.blogEntryIndex.__Tag
    //#input(int compare(Blog, Blog)): b2.blogEntryIndex.publishedIndexEntries
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[net/sourceforge/pebble/domain/Blog]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/Blog.__Descendant_Table[others]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getLastModified()Ljava/util/Date;
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/Blog.__Dispatch_Table.getRecentPublishedBlogEntries(I)Ljava/util/List;
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/Blog.log
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[net/sourceforge/pebble/domain/BlogEntry]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/BlogEntry.__Descendant_Table[others]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/BlogEntry.__Dispatch_Table.getDate()Ljava/util/Date;
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/BlogService.__Descendant_Table[net/sourceforge/pebble/domain/BlogService]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/domain/BlogService.__Dispatch_Table.getBlogEntry(Lnet/sourceforge/pebble/domain/Blog;Ljava/lang/String;)Lnet/sourceforge/pebble/domain/BlogEntry;
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/index/BlogEntryIndex.__Descendant_Table[net/sourceforge/pebble/index/BlogEntryIndex]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/index/BlogEntryIndex.__Descendant_Table[others]
    //#input(int compare(Blog, Blog)): net/sourceforge/pebble/index/BlogEntryIndex.__Dispatch_Table.getPublishedBlogEntries()Ljava/util/List;
    //#output(int compare(Blog, Blog)): return_value
    //#pre[1] (int compare(Blog, Blog)): b1 != null
    //#pre[2] (int compare(Blog, Blog)): b1.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[3] (int compare(Blog, Blog)): b1.blogEntryIndex != null
    //#pre[4] (int compare(Blog, Blog)): b1.blogEntryIndex.__Tag == net/sourceforge/pebble/index/BlogEntryIndex
    //#pre[5] (int compare(Blog, Blog)): init'ed(b1.blogEntryIndex.publishedIndexEntries)
    //#pre[6] (int compare(Blog, Blog)): b2 != null
    //#pre[7] (int compare(Blog, Blog)): b2.__Tag == net/sourceforge/pebble/domain/Blog
    //#pre[8] (int compare(Blog, Blog)): b2.blogEntryIndex != null
    //#pre[9] (int compare(Blog, Blog)): b2.blogEntryIndex.__Tag == net/sourceforge/pebble/index/BlogEntryIndex
    //#pre[10] (int compare(Blog, Blog)): init'ed(b2.blogEntryIndex.publishedIndexEntries)
    //#post(int compare(Blog, Blog)): init'ed(return_value)
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.List:size
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.List:get
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.Date
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.List:iterator
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.Iterator:hasNext
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.Iterator:next
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:getConfiguredFactory
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:getBlogEntryDAO
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:getBlog
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:getId
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:getCompositeKeyForBlogEntry
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.lang.String:valueOf
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.lang.StringBuilder
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.lang.StringBuilder:append
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.lang.StringBuilder:toString
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:setPersistent
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:setEventsEnabled
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:net.sourceforge.pebble.domain.BlogServiceException
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:net.sf.ehcache.Cache:get
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:net.sf.ehcache.Element:getValue
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:org.apache.commons.logging.Log:debug
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:loadBlogEntry
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:net.sf.ehcache.Element
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:net.sf.ehcache.Cache:put
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:clone
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:getBlogEntry
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:java.util.List:add
    //#unanalyzed(int compare(Blog, Blog)): Effects-of-calling:org.apache.commons.logging.Log:error
    //#blogbylastmodifieddatecomparator.java:55: end of method: int net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.compare(Blog, Blog)
  }

}
    //#output(net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init): __Descendant_Table[net/sourceforge/pebble/comparator/BlogByLastModifiedDateComparator]
    //#output(net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I
    //#output(net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init): __Dispatch_Table.compare(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Blog;)I
    //#post(net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init): __Descendant_Table[net/sourceforge/pebble/comparator/BlogByLastModifiedDateComparator] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I == &compare
    //#post(net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init): __Dispatch_Table.compare(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Blog;)I == &compare
    //#blogbylastmodifieddatecomparator.java:: end of method: net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator.net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator__static_init
    //#blogbylastmodifieddatecomparator.java:: end of class: net.sourceforge.pebble.comparator.BlogByLastModifiedDateComparator
