cid#1509284 DMI: Dubious method invocation
Change-Id: I1fd1f710ae2a6b8ebc9506a56d522006509fc935 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139515 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
parent
5c365c62aa
commit
6bad4f6aed
@ -53,6 +53,8 @@ import com.sun.star.uno.UnoRuntime;
|
|||||||
* @see com.sun.star.beans.XFastPropertySet
|
* @see com.sun.star.beans.XFastPropertySet
|
||||||
*/
|
*/
|
||||||
public class _XFastPropertySet extends MultiMethodTest {
|
public class _XFastPropertySet extends MultiMethodTest {
|
||||||
|
public Random rnd = new Random();
|
||||||
|
|
||||||
private static final class Prop {
|
private static final class Prop {
|
||||||
public final int handle;
|
public final int handle;
|
||||||
public final String name;
|
public final String name;
|
||||||
@ -184,7 +186,6 @@ public class _XFastPropertySet extends MultiMethodTest {
|
|||||||
props.add(new Prop(handle, name));
|
props.add(new Prop(handle, name));
|
||||||
} // endfor
|
} // endfor
|
||||||
|
|
||||||
Random rnd = new Random();
|
|
||||||
int nr = rnd.nextInt(props.size());
|
int nr = rnd.nextInt(props.size());
|
||||||
prop = props.get(nr);
|
prop = props.get(nr);
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,7 @@ import com.sun.star.uno.XInterface;
|
|||||||
*/
|
*/
|
||||||
public class _XAutoFormattable extends MultiMethodTest {
|
public class _XAutoFormattable extends MultiMethodTest {
|
||||||
public XAutoFormattable oObj = null;
|
public XAutoFormattable oObj = null;
|
||||||
|
public Random rnd = new Random();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* First 'Default' autoformat is set and a background of a cell
|
* First 'Default' autoformat is set and a background of a cell
|
||||||
@ -82,8 +83,6 @@ public class _XAutoFormattable extends MultiMethodTest {
|
|||||||
String[] names = formats.getElementNames();
|
String[] names = formats.getElementNames();
|
||||||
|
|
||||||
// getting one random not default style name
|
// getting one random not default style name
|
||||||
Random rnd = new Random();
|
|
||||||
|
|
||||||
if (names.length > 1) {
|
if (names.length > 1) {
|
||||||
while (name.equals("Default")) {
|
while (name.equals("Default")) {
|
||||||
name = names[rnd.nextInt(names.length)];
|
name = names[rnd.nextInt(names.length)];
|
||||||
@ -123,4 +122,4 @@ public class _XAutoFormattable extends MultiMethodTest {
|
|||||||
protected void after() {
|
protected void after() {
|
||||||
disposeEnvironment();
|
disposeEnvironment();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user