/** * Copyright Promptu Systems Corporation 2016. All rights reserved. */ package bugzilla; /** * The details of a bug mentioned in a p4 change description. * * @author Warwick Hunter * @since 2016-11-25 */ public class BugMention implements Comparable<BugMention> { private final int m_bugNumber; private int m_reviewNumber; private boolean m_isFixed; public BugMention(int bugNumber) { m_bugNumber = bugNumber; m_isFixed = false; } @Override public String toString() { return String.format("BugMention [bugNumber=%d, reviewNumber=%d, isFixed=%s]", m_bugNumber, m_reviewNumber, m_isFixed); } @Override public int compareTo(BugMention other) { int comparison = Integer.compare(m_bugNumber, other.m_bugNumber); if (comparison != 0) { return comparison; } comparison = Integer.compare(m_reviewNumber, other.m_reviewNumber); if (comparison != 0) { return comparison; } return Boolean.compare(m_isFixed, other.m_isFixed); } public int getBugNumber() { return m_bugNumber; } public int getReviewNumber() { return m_reviewNumber; } public void setReviewNumber(int reviewNumber) { m_reviewNumber = reviewNumber; } public boolean isFixed() { return m_isFixed; } public void setFixed(boolean isFixed) { m_isFixed = isFixed; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 21161 | Warwick Hunter |
P4 Bugzilla v2.1 - Use the new Bugzilla REST API instead of the old XMLRPC API. - Use the latest P4 Java API. - Build with gradle and gradlew. - Integrate with the latest systemd Linux daemon startup environment found on Fedora 21+ systems. - Simplified the code to focus on just the job at hand. |