projects
/
debian
/
openrocket
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updates for 0.9.5
[debian/openrocket]
/
src
/
net
/
sf
/
openrocket
/
rocketcomponent
/
ShockCord.java
diff --git
a/src/net/sf/openrocket/rocketcomponent/ShockCord.java
b/src/net/sf/openrocket/rocketcomponent/ShockCord.java
index 2e7e4cf8ac9fd61a92b3b71b20703e55e5758f62..6c048c6fe3b32b7b146e403d4197cca84e66781a 100644
(file)
--- a/
src/net/sf/openrocket/rocketcomponent/ShockCord.java
+++ b/
src/net/sf/openrocket/rocketcomponent/ShockCord.java
@@
-1,6
+1,7
@@
package net.sf.openrocket.rocketcomponent;
import net.sf.openrocket.material.Material;
package net.sf.openrocket.rocketcomponent;
import net.sf.openrocket.material.Material;
+import net.sf.openrocket.util.BugException;
import net.sf.openrocket.util.MathUtil;
import net.sf.openrocket.util.Prefs;
import net.sf.openrocket.util.MathUtil;
import net.sf.openrocket.util.Prefs;
@@
-22,7
+23,7
@@
public class ShockCord extends MassObject {
public void setMaterial(Material m) {
if (m.getType() != Material.Type.LINE)
public void setMaterial(Material m) {
if (m.getType() != Material.Type.LINE)
- throw new
Runtime
Exception("Attempting to set non-linear material.");
+ throw new
Bug
Exception("Attempting to set non-linear material.");
if (material.equals(m))
return;
this.material = m;
if (material.equals(m))
return;
this.material = m;