From 282855246f2428fdd8563815cb5e46ffd2d0471d Mon Sep 17 00:00:00 2001 From: ahmadmoawad Date: Thu, 27 Aug 2020 20:22:15 +0200 Subject: [PATCH] Fix typo in CONTRIBUTING.md and SpyOnInjectedFieldsHandler (#1994) --- .github/CONTRIBUTING.md | 2 +- .../configuration/injection/SpyOnInjectedFieldsHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index f8135316b5..dcb6481825 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -48,7 +48,7 @@ Things we pay attention in a PR : For that matter it's possible to commit [_semantic_ changes](http://lemike-de.tumblr.com/post/79041908218/semantic-commits). _Tests are an asset, so is history_. - _Exemple gratia_: + _Example gratia_: ``` Fixes #73 : The new feature diff --git a/src/main/java/org/mockito/internal/configuration/injection/SpyOnInjectedFieldsHandler.java b/src/main/java/org/mockito/internal/configuration/injection/SpyOnInjectedFieldsHandler.java index 6230e1b86f..73f3004c19 100644 --- a/src/main/java/org/mockito/internal/configuration/injection/SpyOnInjectedFieldsHandler.java +++ b/src/main/java/org/mockito/internal/configuration/injection/SpyOnInjectedFieldsHandler.java @@ -33,7 +33,7 @@ public class SpyOnInjectedFieldsHandler extends MockInjectionStrategy { protected boolean processInjection(Field field, Object fieldOwner, Set mockCandidates) { FieldReader fieldReader = new FieldReader(fieldOwner, field); - // TODO refoctor : code duplicated in SpyAnnotationEngine + // TODO refactor : code duplicated in SpyAnnotationEngine if (!fieldReader.isNull() && field.isAnnotationPresent(Spy.class)) { try { Object instance = fieldReader.read();