You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When instantiating a new PlaceRequest with "new PlaceRequest.Builder(request)" the parameter map of the base request is directly assigned to the new PlaceRequest which results in a strange situation. If you add a parameter to the second request, then the parameter change is reflected on the first request too.
So the following statements result in a green test, which cannot be correct.
PlaceRequest request = new PlaceRequest.Builder().nameToken("nameToken").with("paramkey", "paramvalue").build();
PlaceRequest copy = new PlaceRequest.Builder(request).with("copyparamkey", "copyparamvalue").build();
assertEquals(request, copy);
assertEquals(request.getParameter("copyparamkey", null), "copyparamvalue");
The text was updated successfully, but these errors were encountered:
When instantiating a new PlaceRequest with "new PlaceRequest.Builder(request)" the parameter map of the base request is directly assigned to the new PlaceRequest which results in a strange situation. If you add a parameter to the second request, then the parameter change is reflected on the first request too.
So the following statements result in a green test, which cannot be correct.
The text was updated successfully, but these errors were encountered: