Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
fa22664b
Kaydet (Commit)
fa22664b
authored
Eki 15, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
java: always use braces for while loops
Change-Id: Iff896b0cace8b8305528b3b0140004ea856169ce
üst
94ae3e82
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
62 additions
and
33 deletions
+62
-33
XOutputStreamToByteArrayAdapter.java
...star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java
+2
-1
MultiTypeInterfaceContainer.java
.../sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java
+4
-2
InterfaceContainer_Test.java
.../com/sun/star/lib/uno/helper/InterfaceContainer_Test.java
+6
-3
ThreadPool_Test.java
...sun/star/lib/uno/environments/remote/ThreadPool_Test.java
+8
-4
GlobalString.java
...ionarySolver/src/net/adaptivebox/global/GlobalString.java
+2
-1
FileHelper.java
qadevOOo/runner/convwatch/FileHelper.java
+2
-1
URLHelper.java
qadevOOo/runner/helper/URLHelper.java
+2
-1
_XArrayFormulaRange.java
qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java
+2
-2
_CharacterProperties.java
qadevOOo/tests/java/ifc/style/_CharacterProperties.java
+2
-1
NestedRegistry.java
qadevOOo/tests/java/mod/_defreg/NestedRegistry.java
+2
-1
NestedRegistry.java
qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java
+2
-1
SimpleRegistry.java
qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java
+2
-1
SimpleRegistry.java
qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java
+2
-1
ParcelDescriptor.java
...sun/star/script/framework/container/ParcelDescriptor.java
+2
-1
AccessibilityTreeModel.java
toolkit/test/accessibility/AccessibilityTreeModel.java
+2
-1
AccessibleTextHandler.java
toolkit/test/accessibility/AccessibleTextHandler.java
+4
-2
AccessibleTreeCellRenderer.java
toolkit/test/accessibility/AccessibleTreeCellRenderer.java
+2
-1
Canvas.java
toolkit/test/accessibility/Canvas.java
+2
-2
InformationWriter.java
toolkit/test/accessibility/InformationWriter.java
+2
-1
MessageArea.java
toolkit/test/accessibility/MessageArea.java
+2
-1
TextUpdateListener.java
toolkit/test/accessibility/TextUpdateListener.java
+4
-2
OfficeDocument.java
...a/org/openoffice/xmerge/converter/xml/OfficeDocument.java
+2
-1
OfficeUtil.java
...ce/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
+2
-1
No files found.
javaunohelper/com/sun/star/lib/uno/adapter/XOutputStreamToByteArrayAdapter.java
Dosyayı görüntüle @
fa22664b
...
@@ -87,8 +87,9 @@ public final class XOutputStreamToByteArrayAdapter
...
@@ -87,8 +87,9 @@ public final class XOutputStreamToByteArrayAdapter
{
{
if
(
externalBuffer
)
if
(
externalBuffer
)
throw
new
BufferSizeExceededException
(
"out of buffer space, cannot grow external buffer"
);
throw
new
BufferSizeExceededException
(
"out of buffer space, cannot grow external buffer"
);
while
(
values
.
length
>
size
-
position
)
while
(
values
.
length
>
size
-
position
)
{
size
*=
2
;
size
*=
2
;
}
byte
[]
newBuffer
=
new
byte
[
size
];
byte
[]
newBuffer
=
new
byte
[
size
];
System
.
arraycopy
(
buffer
,
0
,
newBuffer
,
0
,
position
);
System
.
arraycopy
(
buffer
,
0
,
newBuffer
,
0
,
position
);
buffer
=
newBuffer
;
buffer
=
newBuffer
;
...
...
javaunohelper/com/sun/star/lib/uno/helper/MultiTypeInterfaceContainer.java
Dosyayı görüntüle @
fa22664b
...
@@ -138,14 +138,16 @@ public class MultiTypeInterfaceContainer
...
@@ -138,14 +138,16 @@ public class MultiTypeInterfaceContainer
{
{
it
=
map
.
values
().
iterator
();
it
=
map
.
values
().
iterator
();
}
}
while
(
it
.
hasNext
()
)
while
(
it
.
hasNext
()
)
{
it
.
next
().
disposeAndClear
(
evt
);
it
.
next
().
disposeAndClear
(
evt
);
}
}
}
synchronized
public
void
clear
()
synchronized
public
void
clear
()
{
{
Iterator
<
InterfaceContainer
>
it
=
map
.
values
().
iterator
();
Iterator
<
InterfaceContainer
>
it
=
map
.
values
().
iterator
();
while
(
it
.
hasNext
())
while
(
it
.
hasNext
())
{
it
.
next
().
clear
();
it
.
next
().
clear
();
}
}
}
}
}
javaunohelper/test/com/sun/star/lib/uno/helper/InterfaceContainer_Test.java
Dosyayı görüntüle @
fa22664b
...
@@ -571,11 +571,13 @@ public class InterfaceContainer_Test
...
@@ -571,11 +571,13 @@ public class InterfaceContainer_Test
cont
.
addAll
(
list1
);
cont
.
addAll
(
list1
);
// go to the end of our list and list1
// go to the end of our list and list1
ListIterator
it
=
cont
.
listIterator
();
ListIterator
it
=
cont
.
listIterator
();
while
(
it
.
hasNext
())
while
(
it
.
hasNext
())
{
it
.
next
();
it
.
next
();
}
ListIterator
it_list1
=
list1
.
listIterator
();
ListIterator
it_list1
=
list1
.
listIterator
();
while
(
it_list1
.
hasNext
())
while
(
it_list1
.
hasNext
())
{
it_list1
.
next
();
it_list1
.
next
();
}
while
(
it
.
hasPrevious
())
while
(
it
.
hasPrevious
())
{
{
...
@@ -612,8 +614,9 @@ public class InterfaceContainer_Test
...
@@ -612,8 +614,9 @@ public class InterfaceContainer_Test
ListIterator
it
;
ListIterator
it
;
cont
.
addAll
(
list1
);
cont
.
addAll
(
list1
);
it
=
cont
.
listIterator
();
it
=
cont
.
listIterator
();
while
(
it
.
hasNext
())
while
(
it
.
hasNext
())
{
it
.
next
();
it
.
next
();
}
assertEquals
(
it
.
previousIndex
(),
2
);
assertEquals
(
it
.
previousIndex
(),
2
);
it
.
previous
();
it
.
previous
();
...
...
jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
Dosyayı görüntüle @
fa22664b
...
@@ -73,8 +73,9 @@ public class ThreadPool_Test {
...
@@ -73,8 +73,9 @@ public class ThreadPool_Test {
synchronized
(
workAt
)
{
synchronized
(
workAt
)
{
putJob
(
workAt
,
false
,
threadId
,
"notifyme"
);
putJob
(
workAt
,
false
,
threadId
,
"notifyme"
);
while
(!
workAt
.
_notified
)
while
(!
workAt
.
_notified
)
{
workAt
.
wait
();
workAt
.
wait
();
}
}
}
assertEquals
(
TestWorkAt
.
MESSAGES
,
workAt
.
_counter
);
assertEquals
(
TestWorkAt
.
MESSAGES
,
workAt
.
_counter
);
...
@@ -94,8 +95,9 @@ public class ThreadPool_Test {
...
@@ -94,8 +95,9 @@ public class ThreadPool_Test {
synchronized
(
workAt
)
{
synchronized
(
workAt
)
{
putJob
(
workAt
,
true
,
threadId
,
"notifyme"
);
putJob
(
workAt
,
true
,
threadId
,
"notifyme"
);
while
(!
workAt
.
_notified
)
while
(!
workAt
.
_notified
)
{
workAt
.
wait
();
workAt
.
wait
();
}
}
}
assertEquals
(
TestWorkAt
.
MESSAGES
,
workAt
.
_counter
);
assertEquals
(
TestWorkAt
.
MESSAGES
,
workAt
.
_counter
);
...
@@ -161,8 +163,9 @@ public class ThreadPool_Test {
...
@@ -161,8 +163,9 @@ public class ThreadPool_Test {
synchronized
(
workAt
)
{
synchronized
(
workAt
)
{
putJob
(
workAt
,
true
,
threadId
,
"notifyme"
);
putJob
(
workAt
,
true
,
threadId
,
"notifyme"
);
while
(!
workAt
.
_notified
)
while
(!
workAt
.
_notified
)
{
workAt
.
wait
();
workAt
.
wait
();
}
}
}
assertTrue
(
workAt
.
passedAsyncTest
());
assertTrue
(
workAt
.
passedAsyncTest
());
...
@@ -322,8 +325,9 @@ public class ThreadPool_Test {
...
@@ -322,8 +325,9 @@ public class ThreadPool_Test {
synchronized
(
workAt
)
{
synchronized
(
workAt
)
{
putJob
(
workAt
,
false
,
threadId
,
"notifyme"
);
putJob
(
workAt
,
false
,
threadId
,
"notifyme"
);
while
(!
workAt
.
_notified
)
while
(!
workAt
.
_notified
)
{
workAt
.
wait
();
workAt
.
wait
();
}
}
}
assertEquals
(
TestWorkAt
.
MESSAGES
,
workAt
.
_async_counter
);
assertEquals
(
TestWorkAt
.
MESSAGES
,
workAt
.
_async_counter
);
...
...
nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/global/GlobalString.java
Dosyayı görüntüle @
fa22664b
...
@@ -39,8 +39,9 @@ public class GlobalString {
...
@@ -39,8 +39,9 @@ public class GlobalString {
public
static
String
[]
tokenize
(
String
input
,
String
tokenKey
)
{
public
static
String
[]
tokenize
(
String
input
,
String
tokenKey
)
{
ArrayList
<
String
>
v
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
v
=
new
ArrayList
<
String
>();
StringTokenizer
t
=
new
StringTokenizer
(
input
,
tokenKey
);
StringTokenizer
t
=
new
StringTokenizer
(
input
,
tokenKey
);
while
(
t
.
hasMoreTokens
())
while
(
t
.
hasMoreTokens
())
{
v
.
add
(
t
.
nextToken
());
v
.
add
(
t
.
nextToken
());
}
return
v
.
toArray
(
new
String
[
v
.
size
()]);
return
v
.
toArray
(
new
String
[
v
.
size
()]);
}
}
...
...
qadevOOo/runner/convwatch/FileHelper.java
Dosyayı görüntüle @
fa22664b
...
@@ -277,8 +277,9 @@ public class FileHelper
...
@@ -277,8 +277,9 @@ public class FileHelper
out
=
new
java
.
io
.
FileWriter
(
outputFile
);
out
=
new
java
.
io
.
FileWriter
(
outputFile
);
int
c
;
int
c
;
while
((
c
=
in
.
read
())
!=
-
1
)
while
((
c
=
in
.
read
())
!=
-
1
)
{
out
.
write
(
c
);
out
.
write
(
c
);
}
}
}
finally
finally
...
...
qadevOOo/runner/helper/URLHelper.java
Dosyayı görüntüle @
fa22664b
...
@@ -139,8 +139,9 @@ public class URLHelper
...
@@ -139,8 +139,9 @@ public class URLHelper
if
(
lSubFiles
!=
null
)
if
(
lSubFiles
!=
null
)
{
{
Iterator
<
File
>
aSnapshot
=
lSubFiles
.
iterator
();
Iterator
<
File
>
aSnapshot
=
lSubFiles
.
iterator
();
while
(
aSnapshot
.
hasNext
())
while
(
aSnapshot
.
hasNext
())
{
lFilteredFiles
.
add
(
aSnapshot
.
next
());
lFilteredFiles
.
add
(
aSnapshot
.
next
());
}
}
}
}
}
}
}
...
...
qadevOOo/tests/java/ifc/sheet/_XArrayFormulaRange.java
Dosyayı görüntüle @
fa22664b
...
@@ -152,8 +152,8 @@ public class _XArrayFormulaRange extends MultiMethodTest {
...
@@ -152,8 +152,8 @@ public class _XArrayFormulaRange extends MultiMethodTest {
s1
=
s1
.
trim
()
;
s1
=
s1
.
trim
()
;
s2
=
s2
.
trim
()
;
s2
=
s2
.
trim
()
;
while
(
p1
<
s1
.
length
()
&&
p2
<
s2
.
length
())
{
while
(
p1
<
s1
.
length
()
&&
p2
<
s2
.
length
())
{
while
(
s1
.
charAt
(
p1
)
==
' '
)
p1
++
;
while
(
s1
.
charAt
(
p1
)
==
' '
)
{
p1
++;
}
while
(
s2
.
charAt
(
p2
)
==
' '
)
p2
++
;
while
(
s2
.
charAt
(
p2
)
==
' '
)
{
p2
++;
}
if
(
s1
.
charAt
(
p1
)
!=
s2
.
charAt
(
p2
))
return
false
;
if
(
s1
.
charAt
(
p1
)
!=
s2
.
charAt
(
p2
))
return
false
;
p1
++
;
p1
++
;
p2
++
;
p2
++
;
...
...
qadevOOo/tests/java/ifc/style/_CharacterProperties.java
Dosyayı görüntüle @
fa22664b
...
@@ -499,8 +499,9 @@ public class _CharacterProperties extends MultiPropertyTest {
...
@@ -499,8 +499,9 @@ public class _CharacterProperties extends MultiPropertyTest {
int
count
=
members
.
size
();
int
count
=
members
.
size
();
String
[]
res
=
new
String
[
count
];
String
[]
res
=
new
String
[
count
];
int
i
=
0
;
int
i
=
0
;
while
(
oEnum
.
hasNext
())
while
(
oEnum
.
hasNext
())
{
res
[
i
++]
=
oEnum
.
next
();
res
[
i
++]
=
oEnum
.
next
();
}
return
res
;
return
res
;
}
}
...
...
qadevOOo/tests/java/mod/_defreg/NestedRegistry.java
Dosyayı görüntüle @
fa22664b
...
@@ -97,8 +97,9 @@ public class NestedRegistry extends TestCase {
...
@@ -97,8 +97,9 @@ public class NestedRegistry extends TestCase {
byte
[]
buf
=
new
byte
[
1024
]
;
byte
[]
buf
=
new
byte
[
1024
]
;
int
bytesRead
=
0
;
int
bytesRead
=
0
;
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
{
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
}
fIn
.
close
()
;
fIn
.
close
()
;
fOut
.
close
()
;
fOut
.
close
()
;
...
...
qadevOOo/tests/java/mod/_nestedreg/uno/NestedRegistry.java
Dosyayı görüntüle @
fa22664b
...
@@ -94,8 +94,9 @@ public class NestedRegistry extends TestCase {
...
@@ -94,8 +94,9 @@ public class NestedRegistry extends TestCase {
byte
[]
buf
=
new
byte
[
1024
]
;
byte
[]
buf
=
new
byte
[
1024
]
;
int
bytesRead
=
0
;
int
bytesRead
=
0
;
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
{
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
}
fIn
.
close
()
;
fIn
.
close
()
;
fOut
.
close
()
;
fOut
.
close
()
;
...
...
qadevOOo/tests/java/mod/_simplereg/uno/SimpleRegistry.java
Dosyayı görüntüle @
fa22664b
...
@@ -76,8 +76,9 @@ public class SimpleRegistry extends TestCase {
...
@@ -76,8 +76,9 @@ public class SimpleRegistry extends TestCase {
byte
[]
buf
=
new
byte
[
1024
]
;
byte
[]
buf
=
new
byte
[
1024
]
;
int
bytesRead
=
0
;
int
bytesRead
=
0
;
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
{
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
}
fIn
.
close
()
;
fIn
.
close
()
;
fOut
.
close
()
;
fOut
.
close
()
;
...
...
qadevOOo/tests/java/mod/_simreg/SimpleRegistry.java
Dosyayı görüntüle @
fa22664b
...
@@ -79,8 +79,9 @@ public class SimpleRegistry extends TestCase {
...
@@ -79,8 +79,9 @@ public class SimpleRegistry extends TestCase {
byte
[]
buf
=
new
byte
[
1024
]
;
byte
[]
buf
=
new
byte
[
1024
]
;
int
bytesRead
=
0
;
int
bytesRead
=
0
;
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
while
((
bytesRead
=
fIn
.
read
(
buf
))
>
0
)
{
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
fOut
.
write
(
buf
,
0
,
bytesRead
)
;
}
fIn
.
close
()
;
fIn
.
close
()
;
fOut
.
close
()
;
fOut
.
close
()
;
...
...
scripting/java/com/sun/star/script/framework/container/ParcelDescriptor.java
Dosyayı görüntüle @
fa22664b
...
@@ -233,8 +233,9 @@ public class ParcelDescriptor {
...
@@ -233,8 +233,9 @@ public class ParcelDescriptor {
public
void
setScriptEntries
(
Iterator
<
ScriptEntry
>
scripts
)
{
public
void
setScriptEntries
(
Iterator
<
ScriptEntry
>
scripts
)
{
clearEntries
();
clearEntries
();
while
(
scripts
.
hasNext
())
while
(
scripts
.
hasNext
())
{
addScriptEntry
(
scripts
.
next
());
addScriptEntry
(
scripts
.
next
());
}
}
}
private
String
getLanguageProperty
(
String
name
)
{
private
String
getLanguageProperty
(
String
name
)
{
...
...
toolkit/test/accessibility/AccessibilityTreeModel.java
Dosyayı görüntüle @
fa22664b
...
@@ -160,9 +160,10 @@ public class AccessibilityTreeModel
...
@@ -160,9 +160,10 @@ public class AccessibilityTreeModel
else
else
{
{
// depth-first removal of children
// depth-first removal of children
while
(
aNode
.
getChildCount
()
>
0
)
while
(
aNode
.
getChildCount
()
>
0
)
{
if
(
!
removeChild
(
aNode
.
getChildNoCreate
(
0
)))
if
(
!
removeChild
(
aNode
.
getChildNoCreate
(
0
)))
break
;
break
;
}
// Remove node from its parent.
// Remove node from its parent.
AccessibleTreeNode
aParent
=
aNode
.
getParent
();
AccessibleTreeNode
aParent
=
aNode
.
getParent
();
...
...
toolkit/test/accessibility/AccessibleTextHandler.java
Dosyayı görüntüle @
fa22664b
...
@@ -650,13 +650,15 @@ class TextEditDialog extends TextActionDialog
...
@@ -650,13 +650,15 @@ class TextEditDialog extends TextActionDialog
// count equal characters from front and end
// count equal characters from front and end
int
nFront
=
0
;
int
nFront
=
0
;
while
(
(
nFront
<
nMinLength
)
&&
while
(
(
nFront
<
nMinLength
)
&&
(
sNew
.
charAt
(
nFront
)
==
sOld
.
charAt
(
nFront
))
)
(
sNew
.
charAt
(
nFront
)
==
sOld
.
charAt
(
nFront
))
)
{
nFront
++;
nFront
++;
}
int
nBack
=
0
;
int
nBack
=
0
;
while
(
(
nBack
<
nMinLength
)
&&
while
(
(
nBack
<
nMinLength
)
&&
(
sNew
.
charAt
(
sNew
.
length
()-
nBack
-
1
)
==
(
sNew
.
charAt
(
sNew
.
length
()-
nBack
-
1
)
==
sOld
.
charAt
(
sOld
.
length
()-
nBack
-
1
)
)
)
sOld
.
charAt
(
sOld
.
length
()-
nBack
-
1
)
)
)
{
nBack
++;
nBack
++;
}
if
(
nFront
+
nBack
>
nMinLength
)
if
(
nFront
+
nBack
>
nMinLength
)
nBack
=
nMinLength
-
nFront
;
nBack
=
nMinLength
-
nFront
;
...
...
toolkit/test/accessibility/AccessibleTreeCellRenderer.java
Dosyayı görüntüle @
fa22664b
...
@@ -79,8 +79,9 @@ public class AccessibleTreeCellRenderer
...
@@ -79,8 +79,9 @@ public class AccessibleTreeCellRenderer
*/
*/
public
void
addChangedLine
(
int
nRow
)
public
void
addChangedLine
(
int
nRow
)
{
{
while
(
maChangedLines
.
size
()
<=
nRow
)
while
(
maChangedLines
.
size
()
<=
nRow
)
{
maChangedLines
.
add
(
null
);
maChangedLines
.
add
(
null
);
}
nRow
-=
1
;
// row index is one to large for some reason.
nRow
-=
1
;
// row index is one to large for some reason.
maChangedLines
.
set
(
nRow
,
true
);
maChangedLines
.
set
(
nRow
,
true
);
}
}
...
...
toolkit/test/accessibility/Canvas.java
Dosyayı görüntüle @
fa22664b
...
@@ -144,9 +144,9 @@ class Canvas
...
@@ -144,9 +144,9 @@ class Canvas
public
void
clear
()
public
void
clear
()
{
{
while
(
maNodes
.
size
()
>
0
)
while
(
maNodes
.
size
()
>
0
)
{
removeNode
(
maNodes
.
get
(
0
));
removeNode
(
maNodes
.
get
(
0
));
}
maNodes
.
clear
();
maNodes
.
clear
();
maObjects
.
clear
();
maObjects
.
clear
();
maObjectList
.
clear
();
maObjectList
.
clear
();
...
...
toolkit/test/accessibility/InformationWriter.java
Dosyayı görüntüle @
fa22664b
...
@@ -222,8 +222,9 @@ public class InformationWriter
...
@@ -222,8 +222,9 @@ public class InformationWriter
{
{
// Create indentation string.
// Create indentation string.
String
sIndent
=
""
;
String
sIndent
=
""
;
while
(
depth
--
>
0
)
while
(
depth
--
>
0
)
{
sIndent
+=
" "
;
sIndent
+=
" "
;
}
// Get XAccessibleContext object if given object does not
// Get XAccessibleContext object if given object does not
// already support this interface.
// already support this interface.
...
...
toolkit/test/accessibility/MessageArea.java
Dosyayı görüntüle @
fa22664b
...
@@ -76,8 +76,9 @@ public class MessageArea
...
@@ -76,8 +76,9 @@ public class MessageArea
*/
*/
public
static
synchronized
void
print
(
int
nIndentation
,
String
aMessage
)
public
static
synchronized
void
print
(
int
nIndentation
,
String
aMessage
)
{
{
while
(
nIndentation
--
>
0
)
while
(
nIndentation
--
>
0
)
{
aMessage
=
" "
+
aMessage
;
aMessage
=
" "
+
aMessage
;
}
Instance
().
printMessage
(
aMessage
);
Instance
().
printMessage
(
aMessage
);
}
}
...
...
toolkit/test/accessibility/TextUpdateListener.java
Dosyayı görüntüle @
fa22664b
...
@@ -89,13 +89,15 @@ class TextUpdateListener implements TreeModelListener
...
@@ -89,13 +89,15 @@ class TextUpdateListener implements TreeModelListener
// count equal characters from front and end
// count equal characters from front and end
int
nFront
=
0
;
int
nFront
=
0
;
while
(
(
nFront
<
nMinLength
)
&&
while
(
(
nFront
<
nMinLength
)
&&
(
sNew
.
charAt
(
nFront
)
==
sOld
.
charAt
(
nFront
))
)
(
sNew
.
charAt
(
nFront
)
==
sOld
.
charAt
(
nFront
))
)
{
nFront
++;
nFront
++;
}
int
nBack
=
0
;
int
nBack
=
0
;
while
(
(
nBack
<
nMinLength
)
&&
while
(
(
nBack
<
nMinLength
)
&&
(
sNew
.
charAt
(
sNew
.
length
()-
nBack
-
1
)
==
(
sNew
.
charAt
(
sNew
.
length
()-
nBack
-
1
)
==
sOld
.
charAt
(
sOld
.
length
()-
nBack
-
1
)
)
)
sOld
.
charAt
(
sOld
.
length
()-
nBack
-
1
)
)
)
{
nBack
++;
nBack
++;
}
if
(
nFront
+
nBack
>
nMinLength
)
if
(
nFront
+
nBack
>
nMinLength
)
nBack
=
nMinLength
-
nFront
;
nBack
=
nMinLength
-
nFront
;
...
...
xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java
Dosyayı görüntüle @
fa22664b
...
@@ -1062,8 +1062,9 @@ public abstract class OfficeDocument
...
@@ -1062,8 +1062,9 @@ public abstract class OfficeDocument
char
[]
charArray
=
new
char
[
4096
];
char
[]
charArray
=
new
char
[
4096
];
StringBuffer
sBuf
=
new
StringBuffer
();
StringBuffer
sBuf
=
new
StringBuffer
();
int
n
;
int
n
;
while
((
n
=
br
.
read
(
charArray
,
0
,
charArray
.
length
))
>
0
)
while
((
n
=
br
.
read
(
charArray
,
0
,
charArray
.
length
))
>
0
)
{
sBuf
.
append
(
charArray
,
0
,
n
);
sBuf
.
append
(
charArray
,
0
,
n
);
}
// ensure there is no trailing garbage after the end of the stream.
// ensure there is no trailing garbage after the end of the stream.
int
sIndex
=
sBuf
.
lastIndexOf
(
"</office:document>"
);
int
sIndex
=
sBuf
.
lastIndexOf
(
"</office:document>"
);
...
...
xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
Dosyayı görüntüle @
fa22664b
...
@@ -95,8 +95,9 @@ public class OfficeUtil implements OfficeConstants {
...
@@ -95,8 +95,9 @@ public class OfficeUtil implements OfficeConstants {
// Compute length of space sequence.
// Compute length of space sequence.
int
nrSpaces
=
2
;
int
nrSpaces
=
2
;
while
((
nrSpaces
<
text
.
length
())
while
((
nrSpaces
<
text
.
length
())
&&
text
.
substring
(
nrSpaces
,
nrSpaces
+
1
).
equals
(
" "
))
&&
text
.
substring
(
nrSpaces
,
nrSpaces
+
1
).
equals
(
" "
))
{
nrSpaces
++;
nrSpaces
++;
}
Element
spaceNode
=
parentDoc
.
createElement
(
TAG_SPACE
);
Element
spaceNode
=
parentDoc
.
createElement
(
TAG_SPACE
);
spaceNode
.
setAttribute
(
ATTRIBUTE_SPACE_COUNT
,
spaceNode
.
setAttribute
(
ATTRIBUTE_SPACE_COUNT
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment