Skip to content

Commit

Permalink
Fixed field name.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Mar 26, 2024
1 parent 77a309a commit c79a78d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2015, 2023 Obeo.
* Copyright (c) 2015, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -42,7 +42,7 @@ public abstract class AbstractService<O> implements IService<O> {

/**
* Known {@link IReadOnlyQueryEnvironment} to invalidate cached {@link #returnTypes} and
* {@link #res}.
* {@link #parameterTypes}.
*/
private IReadOnlyQueryEnvironment knwonEnvironment;

Expand All @@ -54,7 +54,7 @@ public abstract class AbstractService<O> implements IService<O> {
/**
* Parameters {@link IType} cache.
*/
private List<IType> res;
private List<IType> parameterTypes;

/**
* Constructor with an {@link Object origin}.
Expand All @@ -80,10 +80,10 @@ public O getOrigin() {
public List<IType> getParameterTypes(IReadOnlyQueryEnvironment queryEnvironment) {
if (knwonEnvironment != queryEnvironment || returnTypes == null) {
knwonEnvironment = queryEnvironment;
res = computeParameterTypes(queryEnvironment);
parameterTypes = computeParameterTypes(queryEnvironment);
}

return res;
return parameterTypes;
}

/**
Expand Down

0 comments on commit c79a78d

Please sign in to comment.