aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine
diff options
context:
space:
mode:
authorAdam Frisby2008-01-15 02:09:55 +0000
committerAdam Frisby2008-01-15 02:09:55 +0000
commitb25f9f322cdbcde7fd8c043137bf07992e5ef318 (patch)
tree7c1a5115b2849dfe388b825dd271271d347f9574 /OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine
parentSet svn:eol-style. (diff)
downloadopensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.zip
opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.gz
opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.bz2
opensim-SC_OLD-b25f9f322cdbcde7fd8c043137bf07992e5ef318.tar.xz
* Mother of all commits:
* Cleaned up copyright notices in AssemblyInfo.cs's * Added Copyright headers to a bunch of files missing them * Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/ClassRecord.cs14
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs4
2 files changed, 9 insertions, 9 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/ClassRecord.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/ClassRecord.cs
index b152df2..3e5ae5a 100644
--- a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/ClassRecord.cs
+++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/ClassRecord.cs
@@ -237,7 +237,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
237 237
238 public class PoolUtf8 : PoolItem 238 public class PoolUtf8 : PoolItem
239 { 239 {
240 public string Value = ""; 240 public string Value = String.Empty;
241 241
242 public void readValue(byte[] data, ref int pointer, int length) 242 public void readValue(byte[] data, ref int pointer, int length)
243 { 243 {
@@ -274,7 +274,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
274 274
275 public class PoolClass : PoolItem 275 public class PoolClass : PoolItem
276 { 276 {
277 //public string name = ""; 277 //public string name = String.Empty;
278 public ushort namePointer = 0; 278 public ushort namePointer = 0;
279 private ClassRecord parent; 279 private ClassRecord parent;
280 public PoolUtf8 Name; 280 public PoolUtf8 Name;
@@ -384,7 +384,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
384 { 384 {
385 public ushort AccessFlags = 0; 385 public ushort AccessFlags = 0;
386 public ushort NameIndex = 0; 386 public ushort NameIndex = 0;
387 public string Name = ""; 387 public string Name = String.Empty;
388 public ushort DescriptorIndex = 0; 388 public ushort DescriptorIndex = 0;
389 public ushort AttributeCount = 0; 389 public ushort AttributeCount = 0;
390 public List<MethodAttribute> Attributes = new List<MethodAttribute>(); 390 public List<MethodAttribute> Attributes = new List<MethodAttribute>();
@@ -436,7 +436,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
436 public class MethodAttribute 436 public class MethodAttribute
437 { 437 {
438 public ushort NameIndex = 0; 438 public ushort NameIndex = 0;
439 public string Name = ""; 439 public string Name = String.Empty;
440 public Int32 Length = 0; 440 public Int32 Length = 0;
441 //for now only support code attribute 441 //for now only support code attribute
442 public ushort MaxStack = 0; 442 public ushort MaxStack = 0;
@@ -502,7 +502,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
502 public class SubAttribute 502 public class SubAttribute
503 { 503 {
504 public ushort NameIndex = 0; 504 public ushort NameIndex = 0;
505 public string Name = ""; 505 public string Name = String.Empty;
506 public Int32 Length = 0; 506 public Int32 Length = 0;
507 public byte[] Data; 507 public byte[] Data;
508 private ClassRecord parent; 508 private ClassRecord parent;
@@ -546,7 +546,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
546 { 546 {
547 public ushort AccessFlags = 0; 547 public ushort AccessFlags = 0;
548 public ushort NameIndex = 0; 548 public ushort NameIndex = 0;
549 public string Name = ""; 549 public string Name = String.Empty;
550 public ushort DescriptorIndex = 0; 550 public ushort DescriptorIndex = 0;
551 public ushort AttributeCount = 0; 551 public ushort AttributeCount = 0;
552 public List<FieldAttribute> Attributes = new List<FieldAttribute>(); 552 public List<FieldAttribute> Attributes = new List<FieldAttribute>();
@@ -605,7 +605,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
605 public class FieldAttribute 605 public class FieldAttribute
606 { 606 {
607 public ushort NameIndex = 0; 607 public ushort NameIndex = 0;
608 public string Name = ""; 608 public string Name = String.Empty;
609 public Int32 Length = 0; 609 public Int32 Length = 0;
610 public byte[] Data; 610 public byte[] Data;
611 private ClassRecord parent; 611 private ClassRecord parent;
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs
index fb8a16e..59f4c0e 100644
--- a/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs
+++ b/OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs
@@ -46,8 +46,8 @@ namespace OpenSim.Region.ExtensionsScriptModule.JVMEngine.JVM
46 string typ = 46 string typ =
47 ((ClassRecord.PoolMethodRef) m_thread.currentClass.m_constantsPool[refIndex - 1]). 47 ((ClassRecord.PoolMethodRef) m_thread.currentClass.m_constantsPool[refIndex - 1]).
48 mNameType.Type.Value; 48 mNameType.Type.Value;
49 string typeparam = ""; 49 string typeparam = System.String.Empty;
50 string typereturn = ""; 50 string typereturn = System.String.Empty;
51 int firstbrak = 0; 51 int firstbrak = 0;
52 int secondbrak = 0; 52 int secondbrak = 0;
53 firstbrak = typ.LastIndexOf('('); 53 firstbrak = typ.LastIndexOf('(');