Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
1c82f747
Commit
1c82f747
authored
Jul 28, 2015
by
Jacob Potter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Djinni-generated CppProxy objects private
Fixes #121
parent
7b270670
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
example/generated-src/java/com/dropbox/textsort/SortItems.java
...le/generated-src/java/com/dropbox/textsort/SortItems.java
+1
-1
src/source/JavaGenerator.scala
src/source/JavaGenerator.scala
+1
-1
test-suite/generated-src/java/com/dropbox/djinni/test/ConstantsInterface.java
...-src/java/com/dropbox/djinni/test/ConstantsInterface.java
+1
-1
test-suite/generated-src/java/com/dropbox/djinni/test/CppException.java
...erated-src/java/com/dropbox/djinni/test/CppException.java
+1
-1
test-suite/generated-src/java/com/dropbox/djinni/test/ExternInterface1.java
...ed-src/java/com/dropbox/djinni/test/ExternInterface1.java
+1
-1
test-suite/generated-src/java/com/dropbox/djinni/test/TestDuration.java
...erated-src/java/com/dropbox/djinni/test/TestDuration.java
+1
-1
test-suite/generated-src/java/com/dropbox/djinni/test/TestHelpers.java
...nerated-src/java/com/dropbox/djinni/test/TestHelpers.java
+1
-1
test-suite/generated-src/java/com/dropbox/djinni/test/Token.java
...ite/generated-src/java/com/dropbox/djinni/test/Token.java
+1
-1
No files found.
example/generated-src/java/com/dropbox/textsort/SortItems.java
View file @
1c82f747
...
@@ -13,7 +13,7 @@ public abstract class SortItems {
...
@@ -13,7 +13,7 @@ public abstract class SortItems {
@CheckForNull
@CheckForNull
public
static
native
SortItems
createWithListener
(
@CheckForNull
TextboxListener
listener
);
public
static
native
SortItems
createWithListener
(
@CheckForNull
TextboxListener
listener
);
p
ublic
static
final
class
CppProxy
extends
SortItems
p
rivate
static
final
class
CppProxy
extends
SortItems
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
src/source/JavaGenerator.scala
View file @
1c82f747
...
@@ -168,7 +168,7 @@ class JavaGenerator(spec: Spec) extends Generator(spec) {
...
@@ -168,7 +168,7 @@ class JavaGenerator(spec: Spec) extends Generator(spec) {
if
(
i
.
ext
.
cpp
)
{
if
(
i
.
ext
.
cpp
)
{
w
.
wl
w
.
wl
javaAnnotationHeader
.
foreach
(
w
.
wl
)
javaAnnotationHeader
.
foreach
(
w
.
wl
)
w
.
wl
(
s
"p
ublic
static final class CppProxy$typeParamList extends $javaClass$typeParamList"
).
braced
{
w
.
wl
(
s
"p
rivate
static final class CppProxy$typeParamList extends $javaClass$typeParamList"
).
braced
{
w
.
wl
(
"private final long nativeRef;"
)
w
.
wl
(
"private final long nativeRef;"
)
w
.
wl
(
"private final AtomicBoolean destroyed = new AtomicBoolean(false);"
)
w
.
wl
(
"private final AtomicBoolean destroyed = new AtomicBoolean(false);"
)
w
.
wl
w
.
wl
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/ConstantsInterface.java
View file @
1c82f747
...
@@ -24,7 +24,7 @@ public abstract class ConstantsInterface {
...
@@ -24,7 +24,7 @@ public abstract class ConstantsInterface {
public
abstract
void
dummy
();
public
abstract
void
dummy
();
p
ublic
static
final
class
CppProxy
extends
ConstantsInterface
p
rivate
static
final
class
CppProxy
extends
ConstantsInterface
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/CppException.java
View file @
1c82f747
...
@@ -13,7 +13,7 @@ public abstract class CppException {
...
@@ -13,7 +13,7 @@ public abstract class CppException {
@CheckForNull
@CheckForNull
public
static
native
CppException
get
();
public
static
native
CppException
get
();
p
ublic
static
final
class
CppProxy
extends
CppException
p
rivate
static
final
class
CppProxy
extends
CppException
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/ExternInterface1.java
View file @
1c82f747
...
@@ -8,7 +8,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
...
@@ -8,7 +8,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
public
abstract
class
ExternInterface1
{
public
abstract
class
ExternInterface1
{
public
abstract
com
.
dropbox
.
djinni
.
test
.
ClientReturnedRecord
foo
(
com
.
dropbox
.
djinni
.
test
.
ClientInterface
i
);
public
abstract
com
.
dropbox
.
djinni
.
test
.
ClientReturnedRecord
foo
(
com
.
dropbox
.
djinni
.
test
.
ClientInterface
i
);
p
ublic
static
final
class
CppProxy
extends
ExternInterface1
p
rivate
static
final
class
CppProxy
extends
ExternInterface1
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/TestDuration.java
View file @
1c82f747
...
@@ -67,7 +67,7 @@ public abstract class TestDuration {
...
@@ -67,7 +67,7 @@ public abstract class TestDuration {
public
static
native
long
unbox
(
@CheckForNull
java
.
time
.
Duration
dt
);
public
static
native
long
unbox
(
@CheckForNull
java
.
time
.
Duration
dt
);
p
ublic
static
final
class
CppProxy
extends
TestDuration
p
rivate
static
final
class
CppProxy
extends
TestDuration
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/TestHelpers.java
View file @
1c82f747
...
@@ -69,7 +69,7 @@ public abstract class TestHelpers {
...
@@ -69,7 +69,7 @@ public abstract class TestHelpers {
@Nonnull
@Nonnull
public
static
native
byte
[]
idBinary
(
@Nonnull
byte
[]
b
);
public
static
native
byte
[]
idBinary
(
@Nonnull
byte
[]
b
);
p
ublic
static
final
class
CppProxy
extends
TestHelpers
p
rivate
static
final
class
CppProxy
extends
TestHelpers
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
test-suite/generated-src/java/com/dropbox/djinni/test/Token.java
View file @
1c82f747
...
@@ -11,7 +11,7 @@ public abstract class Token {
...
@@ -11,7 +11,7 @@ public abstract class Token {
@Nonnull
@Nonnull
public
abstract
String
whoami
();
public
abstract
String
whoami
();
p
ublic
static
final
class
CppProxy
extends
Token
p
rivate
static
final
class
CppProxy
extends
Token
{
{
private
final
long
nativeRef
;
private
final
long
nativeRef
;
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
private
final
AtomicBoolean
destroyed
=
new
AtomicBoolean
(
false
);
...
...
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