Buggy code:
public class ConfigPolicyManager extends PolicyManager { public ConfigPolicyManager ( String configFileName , CertificateCache certificateCache , int searchDepth , double graceInterval , double keyTimestampTtl , int maxTrackedKeys ) throws IOException , SecurityException { } public ConfigPolicyManager ( String configFileName , CertificateCache certificateCache , int searchDepth , double graceInterval , double keyTimestampTtl ) throws IOException , SecurityException { } public ConfigPolicyManager ( String configFileName , CertificateCache certificateCache , int searchDepth , double graceInterval ) throws IOException , SecurityException { } public ConfigPolicyManager ( String configFileName , CertificateCache certificateCache , int searchDepth ) throws IOException , SecurityException { } public ConfigPolicyManager ( String configFileName , CertificateCache certificateCache ) throws IOException , SecurityException { } public ConfigPolicyManager ( String configFileName ) throws IOException , SecurityException { } private void construct ( String configFileName ) throws IOException , SecurityException { } public final boolean skipVerifyAndTrust ( Data data ) { } public final boolean skipVerifyAndTrust ( Interest interest ) { } public final boolean requireVerify ( Data data ) { } public final boolean requireVerify ( Interest interest ) { } public final ValidationRequest checkVerificationPolicy ( Data data , int stepCount , OnVerified onVerified , OnVerifyFailed onVerifyFailed ) throws SecurityException { } public final ValidationRequest checkVerificationPolicy ( Interest interest , int stepCount , OnVerifiedInterest onVerified , OnVerifyInterestFailed onVerifyFailed , WireFormat wireFormat ) throws SecurityException { } public final boolean checkSigningPolicy ( Name dataName , Name certificateName ) { } public final Name inferSigningIdentity ( Name dataName ) { } private static class TrustAnchorRefreshManager { public static IdentityCertificate loadIdentityCertificateFromFile ( String filename ) throws SecurityException { } public IdentityCertificate getCertificate ( Name certificateName ) { } public void addDirectory ( String directoryName , double refreshPeriod ) throws SecurityException { } public void refreshAnchors ( ) throws SecurityException { } private static class DirectoryInfo { public DirectoryInfo ( ArrayList certificateNames , double nextRefresh , double refreshPeriod ) { } ArrayList certificateNames_ ; double nextRefresh_ ; double refreshPeriod_ ; } private final CertificateCache certificateCache_ = new CertificateCache ( ) ; private final HashMap refreshDirectories_ = new HashMap ( ) ; } private void loadTrustAnchorCertificates ( ) throws SecurityException { ArrayList anchors = config_ . getRoot ( ) . get ( "validator//trust-anchor" ) ; for ( int i = 0 ; i < ( anchors . size ( ) ) ; ++ i ) { BoostInfoTree anchor = ( ( BoostInfoTree ) ( anchors . get ( i ) ) ) ; String typeName = anchor . getFirstValue ( "type" ) ; boolean isPath = false ; String certID = null ; if ( typeName . equals ( "file" ) ) { certID = anchor . getFirstValue ( "file-name" ) ; isPath = true ; } else if ( typeName . equals ( "base64" ) ) { certID = anchor . getFirstValue ( "base64-string" ) ; isPath = false ; } else if ( typeName . equals ( "dir" ) ) { String dirName = anchor . getFirstValue ( "dir" ) ; double refreshPeriod = 0 ; ArrayList refreshTrees = anchor . get ( "refresh" ) ; if ( ( refreshTrees . size ( ) ) >= 1 ) { String refreshPeriodStr = ( ( BoostInfoTree ) ( refreshTrees . get ( 0 ) ) ) . getValue ( ) ; Pattern regex1 = Pattern . compile ( "(\\d+)([hms])" ) ; Matcher refreshMatch = regex1 . matcher ( refreshPeriodStr ) ; if ( ! ( refreshMatch . find ( ) ) ) refreshPeriod = 0 ; else { refreshPeriod = Integer . parseInt ( refreshMatch . group ( 1 ) ) ; <START_BUG> if ( refreshMatch . group ( 2 ) . equals ( "s" ) ) { <END_BUG> refreshPeriod *= 60 ; if ( ! ( refreshMatch . group ( 2 ) . equals ( "m" ) ) ) refreshPeriod *= 60 ; } } } refreshManager_ . addDirectory ( dirName , ( refreshPeriod * 1000 ) ) ; continue ; } else if ( typeName . equals ( "any" ) ) { requiresVerification_ = false ; break ; } lookupCertificate ( certID , isPath ) ; } } private boolean checkSignatureMatch ( Name signatureName , Name objectName , BoostInfoTree rule ) throws SecurityException { } private static String expand ( Matcher match , String expansion ) { } private IdentityCertificate lookupCertificate ( String certID , boolean isPath ) throws SecurityException { } private BoostInfoTree findMatchingRule ( Name objName , String matchType ) { } private static boolean matchesRelation ( Name name , Name matchName , String matchRelation ) { } private static Signature extractSignature ( Interest interest , WireFormat wireFormat ) { } private boolean interestTimestampIsFresh ( Name keyName , double timestamp ) { } private void updateTimestampForKey ( Name keyName , double timestamp ) { } private boolean verify ( Signature signatureInfo , SignedBlob signedBlob ) throws SecurityException { } private Interest getCertificateInterest ( int stepCount , String matchType , Name objectName , Signature signature ) throws SecurityException { } private class OnCertificateDownloadComplete implements OnVerified { public OnCertificateDownloadComplete ( Data originalData , int stepCount , OnVerified onVerified , OnVerifyFailed onVerifyFailed ) { } public final void onVerified ( Data data ) { } private final Data originalData_ ; private final int stepCount_ ; private final OnVerified onVerified_ ; private final OnVerifyFailed onVerifyFailed_ ; } private class OnCertificateDownloadCompleteForInterest implements OnVerified { public OnCertificateDownloadCompleteForInterest ( Interest originalInterest , int stepCount , OnVerifiedInterest onVerified , OnVerifyInterestFailed onVerifyFailed , WireFormat wireFormat ) { } public final void onVerified ( Data data ) { } private final Interest originalInterest_ ; private final int stepCount_ ; private final OnVerifiedInterest onVerified_ ; private final OnVerifyInterestFailed onVerifyFailed_ ; private final WireFormat wireFormat_ ; } private class OnVerifyInterestFailedWrapper implements OnVerifyFailed { public OnVerifyInterestFailedWrapper ( OnVerifyInterestFailed onVerifyFailed , Interest interest ) { } public final void onVerifyFailed ( Data data ) { } private final OnVerifyInterestFailed onVerifyFailed_ ; private final Interest interest_ ; } public interface Friend { void setConfigPolicyManagerFriendAccess ( ConfigPolicyManager . FriendAccess friendAccess ) { } }

Fix:
if ( ! ( refreshMatch . group ( 2 ) . equals ( "s" ) ) ) {