Buggy code:
public ExampleReference ( String type , String id , String path ) { } public String describe ( ) { } public String getType ( ) { } public String getId ( ) { } public String getPath ( ) { } } private static final String HTTP_separator = "//" ; private SourceParser prsr ; private PageProcessor page ; private JavaGenerator javaReferencePlatform ; private DelphiGenerator delphiReferencePlatform ; private boolean isGenerate ; private boolean noArchive ; private boolean web ; private String diffProgram ; private Bundle profileFeed ; private Bundle typeFeed ; private Bundle valueSetsFeed ; private Bundle conceptMapsFeed ; private Bundle v2Valuesets ; private Bundle v3Valuesets ; private List < Publisher . Fragment > fragments = new ArrayList < Publisher . Fragment > ( ) ; private Map < String , String > xmls = new HashMap < String , String > ( ) ; private Map < String , String > jsons = new HashMap < String , String > ( ) ; private Map < String , Long > dates = new HashMap < String , Long > ( ) ; private Map < String , Boolean > buildFlags = new HashMap < String , Boolean > ( ) ; private IniFile cache ; private WebMaker wm ; private String svnStated ; public static void main ( String [ ] args ) throws Exception { } private static String checkSubversion ( String folder ) { } private static boolean hasParam ( String [ ] args , String param ) { } private static String getNamedParam ( String [ ] args , String param ) { } public void execute ( String folder , String igName ) throws Exception { } private void loadIG ( ) throws Exception { } private void processIGFiles ( ) throws Exception { } @ SuppressWarnings ( "unchecked" ) private List < Profile > listProfiles ( Map < String , Resource > igResources ) throws Exception { } @ SuppressWarnings ( "unchecked" ) private void loadIgReference ( Resource ae ) { } @ SuppressWarnings ( "unchecked" ) private void processProfiles ( ) throws Exception { } private ConformancePackage makeConformancePackage ( ) { } private ConformancePackage makeConformancePack ( ResourceDefn r ) { } private void validateProfile ( Profile rd ) throws Exception { } private void validateProfile ( ProfileDefn p ) throws Exception { } private void genProfiledTypeProfile ( ProfiledType pt ) throws Exception { } private void genPrimitiveTypeProfile ( PrimitiveType t ) throws Exception { } private void genPrimitiveTypeProfile ( DefinedStringPattern t ) throws Exception { } private void genTypeProfile ( TypeDefn t ) throws Exception { } private void processProfile ( ConformancePackage ap , ProfileDefn profile , String filename ) throws Exception { } public Profile getSnapShotForProfile ( String base ) throws Exception { } private void processProfile ( Profile ae ) throws Exception { } public Profile getIgProfile ( String base ) throws Exception { } @ SuppressWarnings ( "unchecked" ) private Profile getIGProfileByURL ( String url ) { } private void loadSuppressedMessages ( String rootDir ) throws Exception { } private void loadValueSets1 ( ) throws Exception { } private void loadValueSets2 ( ) throws Exception { } private void buildFeedsAndMaps ( ) { } private void generateConformanceStatement ( boolean full , String name ) throws Exception { } private ConformanceRestResourceSearchParamComponent makeSearchParam ( Conformance p , String rn , SearchParameterDefn i ) { ConformanceRestResourceSearchParamComponent result = new Conformance . ConformanceRestResourceSearchParamComponent ( ) ; result . setName ( i . getCode ( ) ) ; <START_BUG> result . setDefinition ( ( ( ( "http:////hl7.org//fhir//SearchParameter//" + ( rn . toLowerCase ( ) ) ) + "-" ) + ( i . getCode ( ) ) ) ) ; <END_BUG> result . setType ( getSearchParamType ( i . getType ( ) ) ) ; result . setDocumentation ( i . getDescription ( ) ) ; i . setXPath ( new org . hl7 . fhir . definitions . generators . specification . XPathQueryGenerator ( page . getDefinitions ( ) , page , page . getQa ( ) ) . generateXpath ( i . getPaths ( ) ) ) ; return result ; } private SearchParamType getSearchParamType ( SearchType type ) { } private void genConfOp ( Conformance conf , ConformanceRestResourceComponent res , TypeRestfulInteraction op ) { } private void genConfOp ( Conformance conf , ConformanceRestComponent res , SystemRestfulInteraction op ) { } private IniFile ini ; private void defineSpecialValues ( ) throws Exception { } private String getCodeId ( String q , String name ) { } private void generateECore ( Definitions eCoreDefinitions , String filename ) throws IOException { } private void registerReferencePlatforms ( ) { } public boolean checkFile ( String purpose , String dir , String file , List < String > errors , String category ) throws IOException { } private boolean initialize ( String folder ) throws Exception { } private boolean validate ( ) throws Exception { } private boolean hasBuildFlag ( String n ) { } private boolean wantBuild ( String rname ) { } private void checkExampleLinks ( List < ValidationMessage > errors , ResourceDefn r ) throws Exception { } private String listTargetIds ( String type ) throws Exception { } private boolean resolveLink ( Publisher . ExampleReference ref ) throws Exception { } private String extractId ( String id , String type ) throws Exception { } private void listLinks ( Element xml , List < Publisher . ExampleReference > refs ) throws Exception { } private void listLinks ( String path , ElementDefn d , List < Element > set , List < Publisher . ExampleReference > refs ) throws Exception { } private void produceSpecification ( String eCorePath ) throws Exception { } private void produceArchive ( ) throws Exception { } private void produceSpec ( ) throws Exception { } private void minify ( String srcFile , String dstFile ) throws Exception { } private InputStream stripJson ( InputStream source ) throws Exception { }

Fix:
result . setDefinition ( ( ( ( "http:////hl7.org//fhir//SearchParameter//" + ( rn . toLowerCase ( ) ) ) + "-" ) + ( i . getCode ( ) . replace ( "-[x]" , "" ) ) ) ) ;