aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ExtensionsScriptModule
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ExtensionsScriptModule')
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs6
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/ClassRecord.cs14
-rw-r--r--OpenSim/Region/ExtensionsScriptModule/Engines/JVMEngine/JVM/Interpreter.Methods.cs4
3 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs
index a25d027..6b1f291 100644
--- a/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs
+++ b/OpenSim/Region/ExtensionsScriptModule/Engines/CSharp/Examples/ExportRegionToLSL.cs
@@ -50,7 +50,7 @@ namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples
50 { 50 {
51 /*if (args[0].ToLower() == "lslexport") 51 /*if (args[0].ToLower() == "lslexport")
52 { 52 {
53 string sequence = ""; 53 string sequence = String.Empty;
54 54
55 foreach (KeyValuePair<LLUUID, SceneObject> obj in script.world.Objects) 55 foreach (KeyValuePair<LLUUID, SceneObject> obj in script.world.Objects)
56 { 56 {
@@ -82,13 +82,13 @@ namespace OpenSim.Region.ExtensionsScriptModule.CSharp.Examples
82 LLVector3 scale = prim.Scale; 82 LLVector3 scale = prim.Scale;
83 LLVector3 rootPos = prim.WorldPos; 83 LLVector3 rootPos = prim.WorldPos;
84 84
85 string setPrimParams = ""; 85 string setPrimParams = String.Empty;
86 86
87 setPrimParams += "[PRIM_SCALE, " + scale.ToString() + ", PRIM_POS, " + rootPos.ToString() + ", PRIM_ROTATION, " + rot.ToString() + "]\n"; 87 setPrimParams += "[PRIM_SCALE, " + scale.ToString() + ", PRIM_POS, " + rootPos.ToString() + ", PRIM_ROTATION, " + rot.ToString() + "]\n";
88 88
89 return setPrimParams; 89 return setPrimParams;
90 */ 90 */
91 return ""; 91 return System.String.Empty;
92 } 92 }
93 } 93 }
94} \ No newline at end of file 94} \ No newline at end of file
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('(');