Skip to content

Commit

Permalink
Merge pull request #5066 from manovotn/removePrivateFields
Browse files Browse the repository at this point in the history
Remove private field injection from within our own extensions.
  • Loading branch information
gsmet authored Oct 31, 2019
2 parents 4196c89 + 3baff96 commit b23d288
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,23 @@ public class CDIDelegatingTransactionManager implements TransactionManager, Seri
*/
@Inject
@Initialized(TransactionScoped.class)
private Event<Transaction> transactionScopeInitialized;
Event<Transaction> transactionScopeInitialized;

/**
* An {@link Event} that can {@linkplain Event#fire(Object) fire}
* {@link Object}s before the {@linkplain TransactionScoped transaction scope} is destroyed.
*/
@Inject
@BeforeDestroyed(TransactionScoped.class)
private Event<Object> transactionScopeBeforeDestroyed;
Event<Object> transactionScopeBeforeDestroyed;

/**
* An {@link Event} that can {@linkplain Event#fire(Object) fire}
* {@link Object}s when the {@linkplain TransactionScoped transaction scope} is destroyed.
*/
@Inject
@Destroyed(TransactionScoped.class)
private Event<Object> transactionScopeDestroyed;
Event<Object> transactionScopeDestroyed;

/**
* Delegating transaction manager call to com.arjuna.ats.jta.{@link com.arjuna.ats.jta.TransactionManager}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public class QuarkusObjectMapperContextResolver implements ContextResolver<ObjectMapper> {

@Inject
private ObjectMapper objectMapper;
ObjectMapper objectMapper;

@Override
public ObjectMapper getContext(Class<?> type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class QuarkusJsonbContextResolver implements ContextResolver<Jsonb> {

@Inject
private Jsonb jsonb;
Jsonb jsonb;

@Override
public Jsonb getContext(Class<?> type) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void testCodecRegistrationBasedOnReturnTypeWithCompletionStage() {

}

private static class EventBusConsumers {
static class EventBusConsumers {

private List<String> address1 = new CopyOnWriteArrayList<>();
private List<String> address2 = new CopyOnWriteArrayList<>();
Expand Down

0 comments on commit b23d288

Please sign in to comment.