mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Use the first replacement class version on the classpath.
This commit is contained in:
parent
2fa6dfedf8
commit
e71161302a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 Volker Berlin (i-net software)
|
||||
Copyright 2020 - 2022 Volker Berlin (i-net software)
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -118,8 +118,10 @@ public class ClassFileLoader {
|
||||
* the replacing ClassFile
|
||||
*/
|
||||
void replace( String className, ClassFile classFile ) {
|
||||
classFile = new ClassFile( className, classFile );
|
||||
replace.put( className, classFile );
|
||||
if( replace.get( className ) == null ) {
|
||||
classFile = new ClassFile( className, classFile );
|
||||
replace.put( className, classFile );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user