Created
June 1, 2013 03:03
-
-
Save kevindoran/5689151 to your computer and use it in GitHub Desktop.
Dragon class used to demonstrate security issues when using Java serialization.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Dragon(double wingSpan, double name, SpeedCalculator speedCalculator) { | |
// There are no input checks this time! | |
this.wingSpan = wingSpan; | |
this.name = name; | |
this.speedCalculator = speedCalculator; // This is new! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment